This commit is contained in:
邹宗楠
2024-01-25 10:24:56 +08:00
parent 32debec0f8
commit d967e67601
4 changed files with 69 additions and 30 deletions

View File

@@ -6511,17 +6511,10 @@ func CopyMtToJd(ctx *jxcontext.Context, mtStoreID, mtOrgCode, jdStoreID, jdOrgCo
catMap = make(map[string]string)
LoopCatChild funcType
)
//mtStoreID = "11655829"
//mtOrgCode = "589"
//jdStoreID = "12116911"
//jdOrgCode = "364156"
jd := jd.GetAPI(jdOrgCode)
//获取token
mtapi := apimanager.CurAPIManager.GetAPI(model.VendorIDMTWM, mtOrgCode).(*mtwmapi.API)
//if token, err := mtapi.GetAccessToken2(mtStoreID); err == nil && token != nil {
// mtAccessToken = token.AccessToken
//}
//mtapi.SetToken(mtAccessToken)
LoopCatChild = func(mtID, parentID string, catInfo []*mtwmapi.RetailCategoryInfo) {
if len(catInfo) > 0 {
for j := len(catInfo) - 1; j > -1; j-- {