This commit is contained in:
邹宗楠
2024-02-28 18:12:22 +08:00
parent 8f5ee5fac1
commit cd893ad98a
2 changed files with 16 additions and 4 deletions

View File

@@ -1,6 +1,7 @@
package mtwmapi
import (
"git.rosy.net.cn/jx-callback/globals"
"strings"
"git.rosy.net.cn/baseapi/utils"
@@ -452,11 +453,14 @@ func (a *API) RetailDiscountDelete2(poiCode string, actType int, actIDList []str
if actType == 0 {
actType = RetailActTypeDirectDown
}
globals.SugarLogger.Debugf("=========poiCode : %s ,%d ,%s", poiCode, actType, utils.Format4Output(actIDList, false))
result, err := a.AccessAPI("act/retail/discount/batchdelete", false, map[string]interface{}{
KeyAppPoiCode: poiCode,
"act_type": actType,
"item_ids": strings.Join(actIDList, ","),
})
globals.SugarLogger.Debugf("==============resullt := %s", utils.Format4Output(result, false))
globals.SugarLogger.Debugf("==============err := %v", err)
var msg string
if err == nil {
msg = getMsgFromResult(result)