美团属性值改了

This commit is contained in:
苏尹岚
2020-09-01 15:26:22 +08:00
parent f35532fa05
commit e52b99a3cb
7 changed files with 19 additions and 31 deletions

View File

@@ -1,8 +1,6 @@
package jdapi
import (
"fmt"
"regexp"
"testing"
"time"
@@ -114,15 +112,6 @@ func TestUpdateStoreConfig4Open(t *testing.T) {
}
}
func TestGetDeliveryRangeByStationNo(t *testing.T) {
const testStoreID = "11734851"
result, err := api.GetDeliveryRangeByStationNo2(testStoreID)
if err != nil {
t.Fatal(err)
}
baseapi.SugarLogger.Debug(utils.Format4Output(result, false))
}
func TestDisableAutoOrder4AllStores(t *testing.T) {
storeIDs, err := api.GetStationsByVenderId()
if err != nil {
@@ -154,13 +143,12 @@ func TestUpdateStoreFreightConfigNew(t *testing.T) {
}
}
func TestAA(t *testing.T) {
str := "您的快件正在派送中请您准备签收快递员赵磊联系电话18884041675"
regexpCnameAndCmobile2 := regexp.MustCompile(`(快递员:(.*),联系电话:(.*)`)
result := regexpCnameAndCmobile2.FindAllStringSubmatch(str, -1)
if len(result) > 0 {
cName := result[0][1]
cMobile := result[0][2]
fmt.Println(cName, cMobile)
func TestGetDeliveryRangeByStationNo(t *testing.T) {
const testStoreID = "11732462"
result, err := api.GetDeliveryRangeByStationNo2(testStoreID)
if err != nil {
t.Fatal(err)
}
baseapi.SugarLogger.Debug(utils.Format4Output(result, false))
// fmt.Println("tetet11111111111111111111111111111111", computeSignedArea(strings.Split(result.DeliveryRange, ";")))
}