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