1
This commit is contained in:
@@ -130,8 +130,10 @@ func (P *PurchaseHandler) CreateStore2(db *dao.DaoDB, storeID int, userName stri
|
||||
}
|
||||
storeIDs += utils.Int64ToStr(v.Store.StoreId)
|
||||
}
|
||||
globals.SugarLogger.Debug("Success createStore and return storeID=====", resp.ResultList[0].Store.StoreId, utils.Str2Int(storeIDs))
|
||||
if utils.Str2Int(storeIDs) == 0 {
|
||||
return "", errors.New(fmt.Sprintf("创建店铺失败原因storeIDs = 0:%v,%v", err, resp.ResultList[0].Msg))
|
||||
errList.AddErr(fmt.Errorf("storeIDs=0 %v", err))
|
||||
//return "", errors.New(fmt.Sprintf("创建店铺失败原因storeIDs = 0:%v,%v", err, resp.ResultList[0].Msg))
|
||||
}
|
||||
//创建并绑定运费模板
|
||||
freightTemplateID, err := CreateFreightTemplate(storeDetail.Store.ID)
|
||||
@@ -255,8 +257,6 @@ func (P *PurchaseHandler) UpdateStore(db *dao.DaoDB, storeID int, userName strin
|
||||
globals.SugarLogger.Debug("================mergedStoreStatus", mergedStoreStatus)
|
||||
errList.AddErr(P.UpdateStoreStatus(jxcontext.AdminCtx, storeInfo.VendorOrgCode, storeID, storeInfo.VendorStoreID, mergedStoreStatus))
|
||||
}
|
||||
//更新电子围栏
|
||||
|
||||
//TODO 需增加 更新运费模板、电子围栏
|
||||
_, err3 := api.EditStore(params)
|
||||
if err3 != nil {
|
||||
|
||||
Reference in New Issue
Block a user