- 将IsMobileFake用IsStringLikeMobile替换
- 添加HandleOrder4Consignee, GetRealMobile4Order和GetAuthType4Vendor - 添加GoodsOrder.VendorUserID
This commit is contained in:
@@ -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")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user