美团属性值改了

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

@@ -23,7 +23,7 @@ func init() {
// sandbox
// api = New("594ab45a-9a73-4a43-82b0-a64cbd55d883", "06692746f7224695ad4788ce340bc854", "d6b42a35a7414a5490d811654d745c84")
// prod
api = New("77e703b7-7997-441b-a12a-2e522efb117a", "1dba76d40cac446ca500c0391a0b6c9d", "a88d031a1e7b462cb1579f12e97fe7f4")
api = New("29afd5a8-f93f-4d4c-9fce-a7297340af59", "1dba76d40cac446ca500c0391a0b6c9d", "a88d031a1e7b462cb1579f12e97fe7f4")
// 天天果园
// api = New("c45e6510-00ba-4be2-977e-bcb9c9792cc7", "5d5577a2506f41b8b4ec520ba83490f5", "0b01b9eeb15b41dab1c3d05d95c17a26")

View File

@@ -274,10 +274,10 @@ func TestGetJdShopOrders(t *testing.T) {
}
func TestGetJdTopSkus(t *testing.T) {
result1, result2, err := api.GetJdTopSkus("11732425")
if err != nil {
t.Fatal(err)
}
t.Log(utils.Format4Output(result1, false))
t.Log(utils.Format4Output(result2, false))
// result1, result2, err := api.GetJdTopSkus("11732425")
// if err != nil {
// t.Fatal(err)
// }
// t.Log(utils.Format4Output(result1, false))
// t.Log(utils.Format4Output(result2, false))
}

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, ";")))
}