1
This commit is contained in:
@@ -122,7 +122,7 @@ func (P *PurchaseHandler) CreateStore2(db *dao.DaoDB, storeID int, userName stri
|
|||||||
return "", err
|
return "", err
|
||||||
} else {
|
} else {
|
||||||
if len(resp.ResultList) == 0 {
|
if len(resp.ResultList) == 0 {
|
||||||
return "", errors.New("创建店铺失败原因:%v", err)
|
return "", err
|
||||||
}
|
}
|
||||||
for k, v := range resp.ResultList {
|
for k, v := range resp.ResultList {
|
||||||
if k != len(resp.ResultList) {
|
if k != len(resp.ResultList) {
|
||||||
@@ -130,9 +130,9 @@ func (P *PurchaseHandler) CreateStore2(db *dao.DaoDB, storeID int, userName stri
|
|||||||
}
|
}
|
||||||
storeIDs += utils.Int64ToStr(v.Store.StoreId)
|
storeIDs += utils.Int64ToStr(v.Store.StoreId)
|
||||||
}
|
}
|
||||||
globals.SugarLogger.Debug("ShopBatchCreateStoreParam======&&failMsg=======", ShopBatchCreateStoreParam, resp.ResultList[0].Msg)
|
|
||||||
if utils.Str2Int(storeIDs) == 0 {
|
if utils.Str2Int(storeIDs) == 0 {
|
||||||
return "", errors.New("创建店铺失败原因:utils.Str2Int(storeIDs) == 0:%v", resp.ResultList[0].Msg)
|
globals.SugarLogger.Debug("ShopBatchCreateStoreParam======&&failMsg=======", ShopBatchCreateStoreParam, resp.ResultList[0].Msg)
|
||||||
|
return "", errors.New(fmt.Sprintf("创建店铺失败原因:utils.Str2Int(storeIDs) == 0:%v", resp.ResultList[0].Msg))
|
||||||
}
|
}
|
||||||
//创建并绑定运费模板
|
//创建并绑定运费模板
|
||||||
freightTemplateID, err := CreateFreightTemplate(storeDetail.Store.ID)
|
freightTemplateID, err := CreateFreightTemplate(storeDetail.Store.ID)
|
||||||
|
|||||||
Reference in New Issue
Block a user