This commit is contained in:
richboo111
2022-10-10 10:35:17 +08:00
parent 69bb828776
commit 4ec33af53d

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("创建店铺失败原因:len(resp.ResultList) == 0")
return "", errors.New("创建店铺失败原因:%v", err)
}
for k, v := range resp.ResultList {
if k != len(resp.ResultList) {
@@ -132,7 +132,7 @@ func (P *PurchaseHandler) CreateStore2(db *dao.DaoDB, storeID int, userName stri
}
globals.SugarLogger.Debug("ShopBatchCreateStoreParam======&&failMsg=======", ShopBatchCreateStoreParam, resp.ResultList[0].Msg)
if utils.Str2Int(storeIDs) == 0 {
return "", errors.New("创建店铺失败原因utils.Str2Int(storeIDs) == 0")
return "", errors.New("创建店铺失败原因utils.Str2Int(storeIDs) == 0:%v", resp.ResultList[0].Msg)
}
//创建并绑定运费模板
freightTemplateID, err := CreateFreightTemplate(storeDetail.Store.ID)