This commit is contained in:
richboo111
2022-10-10 10:38:57 +08:00
parent 4ec33af53d
commit 60d00fda94

View File

@@ -122,7 +122,7 @@ func (P *PurchaseHandler) CreateStore2(db *dao.DaoDB, storeID int, userName stri
return "", err
} else {
if len(resp.ResultList) == 0 {
return "", errors.New("创建店铺失败原因:%v", err)
return "", err
}
for k, v := range 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)
}
globals.SugarLogger.Debug("ShopBatchCreateStoreParam======&&failMsg=======", ShopBatchCreateStoreParam, resp.ResultList[0].Msg)
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)