This commit is contained in:
邹宗楠
2022-11-17 10:42:35 +08:00
parent 46ab7d9486
commit c9f16565c5

View File

@@ -2,6 +2,7 @@ package jdapi
import (
"fmt"
"git.rosy.net.cn/jx-callback/globals"
"regexp"
"strings"
@@ -320,6 +321,7 @@ func (a *API) AddShopCategory(pid int64, shopCategoryName string, shopCategoryLe
params["createPin"] = utils.GetAPIOperator(userName)
}
result, err := a.AccessAPINoPage("pms/addShopCategory", params, nil, nil, nil)
globals.SugarLogger.Debugf("========result : %s", utils.Format4Output(result, false))
if err == nil {
return (result.(map[string]interface{}))["id"].(string), nil
}