1
This commit is contained in:
@@ -121,16 +121,17 @@ func (P *PurchaseHandler) CreateStore2(db *dao.DaoDB, storeID int, userName stri
|
||||
if resp, err := a.BatchCreateStore(ShopBatchCreateStoreParam); err != nil {
|
||||
return "", err
|
||||
} else {
|
||||
if len(resp.ResultList) == 0 {
|
||||
return "", err
|
||||
}
|
||||
for k, v := range resp.ResultList {
|
||||
if k != len(resp.ResultList) {
|
||||
storeIDs = utils.Int64ToStr(v.Store.StoreId) + ","
|
||||
}
|
||||
storeIDs = utils.Int64ToStr(v.Store.StoreId)
|
||||
}
|
||||
if utils.Str2Int(storeIDs) == 0 {
|
||||
//if len(resp.ResultList) == 0 {
|
||||
// return "", err
|
||||
//}
|
||||
//for k, v := range resp.ResultList {
|
||||
// if k != len(resp.ResultList) {
|
||||
// storeIDs = utils.Int64ToStr(v.Store.StoreId) + ","
|
||||
// }
|
||||
// storeIDs = utils.Int64ToStr(v.Store.StoreId)
|
||||
//}
|
||||
storeIDs = utils.Int64ToStr(resp.ResultList[0].Store.StoreId)
|
||||
if utils.Str2Int(storeIDs) == 0 || len(resp.ResultList) == 0 {
|
||||
return "", errors.New(fmt.Sprintf("创建店铺失败,storeIDs = 0:%v,%v", err, resp.ResultList[0].Msg))
|
||||
}
|
||||
//创建并绑定运费模板
|
||||
|
||||
Reference in New Issue
Block a user