修改抖音配送回传
This commit is contained in:
@@ -20,13 +20,13 @@ func init() {
|
||||
baseapi.Init(sugarLogger)
|
||||
|
||||
// 菜市
|
||||
api = New("589", "a81eb3df418d83d6a1a4b7c572156d2f", "", "")
|
||||
//api = New("589", "a81eb3df418d83d6a1a4b7c572156d2f", "", "")
|
||||
|
||||
// 果园
|
||||
//api = New("4123", "df2c88338b85f830cebce2a9eab56628", "", "")
|
||||
|
||||
//商超
|
||||
// api = New("5873", "41c479790a76f86326f89e8048964739", "", "token_jNSo7gNRUT-3-DsxVzpORA") //token_n4TwqCntWWuvQwAawzxC0w
|
||||
api = New("5873", "41c479790a76f86326f89e8048964739", "", "token_nrOXcZts7NkAsoc_oR5CZA") //token_n4TwqCntWWuvQwAawzxC0w
|
||||
cookieStr := `
|
||||
acctId=57396785; token=0bWbK5VbK50E2BmIhIH2zHB-am_y7mB37yXHm6RLZWx4*; wmPoiId=-1;
|
||||
`
|
||||
|
||||
@@ -7,6 +7,7 @@ import (
|
||||
"git.rosy.net.cn/jx-callback/globals"
|
||||
"strings"
|
||||
"testing"
|
||||
"time"
|
||||
)
|
||||
|
||||
// 测试添加分类
|
||||
@@ -165,10 +166,36 @@ func TestBatchSetPrice(t *testing.T) {
|
||||
fmt.Println(err)
|
||||
}
|
||||
func TestRetailDelete(t *testing.T) {
|
||||
err := api.RetailDelete(utils.GetUUID(), testPoiCode, "32427")
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
poiCode := "19907139"
|
||||
for {
|
||||
cat, _ := api.RetailCatList(poiCode)
|
||||
for _, v := range cat {
|
||||
api.RetailCatDelete(poiCode, "", v.Name, 1)
|
||||
}
|
||||
foodList, err1 := api.RetailListAll(poiCode, 0)
|
||||
if err1 != nil {
|
||||
globals.SugarLogger.Debugf("====err1 := %v", err1)
|
||||
return
|
||||
}
|
||||
|
||||
i := 0
|
||||
for _, v := range foodList {
|
||||
err2 := api.RetailDelete("test_LiuLei", poiCode, v.AppFoodCode)
|
||||
if err2 != nil {
|
||||
globals.SugarLogger.Debugf("====err2 := %v", err1)
|
||||
}
|
||||
if i%40 == 0 {
|
||||
time.Sleep(200 * time.Millisecond)
|
||||
}
|
||||
i++
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
//err := api.RetailDelete(utils.GetUUID(), testPoiCode, "32427")
|
||||
//if err != nil {
|
||||
// t.Fatal(err)
|
||||
//}
|
||||
}
|
||||
|
||||
func TestRetailDat(t *testing.T) {
|
||||
|
||||
Reference in New Issue
Block a user