This commit is contained in:
邹宗楠
2025-08-19 11:24:00 +08:00
parent d0a669c7a4
commit 79f9faae1e
3 changed files with 6 additions and 3 deletions

View File

@@ -1,6 +1,7 @@
package mtwmapi
import (
"git.rosy.net.cn/jx-callback/globals"
"strings"
"git.rosy.net.cn/baseapi/utils"
@@ -485,6 +486,8 @@ func (a *API) RetailDiscountDelete2(poiCode string, actType int, actIDList []str
"act_type": actType,
"item_ids": strings.Join(actIDList, ","),
})
globals.SugarLogger.Debugf("-------result batchdelete:= %s", utils.Format4Output(result, false))
globals.SugarLogger.Debugf("-------err batchdelete:= %v", err)
var msg string
if err == nil {
msg = getMsgFromResult(result)

View File

@@ -249,7 +249,7 @@ type StoreSkuInfo struct {
//42597433459
func TestDeleteActSku(t *testing.T) {
failedList2, err2 := api.RetailDiscountDelete2("10540654", 1001, []string{"42597433459"})
failedList2, err2 := api.RetailDiscountDelete2("18698027", 1001, []string{"131226110670"})
fmt.Println(utils.Format4Output(failedList2, false))
fmt.Println(err2)

View File

@@ -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_gsALm2N5YwK5MqJYgo5BHQ")
api = New("5873", "41c479790a76f86326f89e8048964739", "", "token_nld07Y5m8rEQZJMMrvZGmA")
//cookieStr := `
// acctId=57396785; token=0bWbK5VbK50E2BmIhIH2zHB-am_y7mB37yXHm6RLZWx4*; wmPoiId=-1;
//`