- don't set default mtwm vendor cat id

This commit is contained in:
gazebo
2019-03-17 22:25:28 +08:00
parent efec73afc4
commit 2434f77b8b

View File

@@ -15,10 +15,6 @@ import (
"git.rosy.net.cn/jx-callback/globals/api" "git.rosy.net.cn/jx-callback/globals/api"
) )
const (
defVendorCatID = 200000380
)
// hint如果是异步返回的是任务ID如果是同步返回是本次需要同步的目录数 // hint如果是异步返回的是任务ID如果是同步返回是本次需要同步的目录数
func (p *PurchaseHandler) SyncStoreCategory(ctx *jxcontext.Context, parentTask tasksch.ITask, storeID int, isAsync bool) (hint string, err error) { func (p *PurchaseHandler) SyncStoreCategory(ctx *jxcontext.Context, parentTask tasksch.ITask, storeID int, isAsync bool) (hint string, err error) {
userName := ctx.GetUserName() userName := ctx.GetUserName()
@@ -263,7 +259,7 @@ func (p *PurchaseHandler) SyncStoreSkus(ctx *jxcontext.Context, parentTask tasks
if skuItem.VendorVendorCatID != 0 { if skuItem.VendorVendorCatID != 0 {
foodData["tag_id"] = utils.Int64ToStr(skuItem.VendorVendorCatID) foodData["tag_id"] = utils.Int64ToStr(skuItem.VendorVendorCatID)
} else { } else {
foodData["tag_id"] = utils.Int64ToStr(defVendorCatID) // foodData["tag_id"] = utils.Int64ToStr(defVendorCatID)
} }
foodData["skus"] = []map[string]interface{}{ foodData["skus"] = []map[string]interface{}{
map[string]interface{}{ map[string]interface{}{