- 将IsMobileFake用IsStringLikeMobile替换

- 添加HandleOrder4Consignee, GetRealMobile4Order和GetAuthType4Vendor
- 添加GoodsOrder.VendorUserID
This commit is contained in:
gazebo
2019-09-04 18:50:25 +08:00
parent f50fdf2bab
commit a0bb7d37f0
10 changed files with 93 additions and 55 deletions

View File

@@ -47,17 +47,17 @@ func TestFakeID(t *testing.T) {
}
}
func TestIsMobileFake(t *testing.T) {
if IsMobileFake("13888888888") {
func TestIsStringLikeMobile(t *testing.T) {
if !IsStringLikeMobile("13888888888") {
t.Fatal("wrong 1")
}
if IsMobileFake("13888888888-123") {
if IsStringLikeMobile("13888888888-123") {
t.Fatal("wrong 2")
}
if IsMobileFake("13888888888,123") {
if IsStringLikeMobile("13888888888,123") {
t.Fatal("wrong 3")
}
if !IsMobileFake("138****8888") {
if IsStringLikeMobile("138****8888") {
t.Fatal("wrong 4")
}
}