This commit is contained in:
richboo111
2023-10-08 10:29:41 +08:00
parent aa7fc8c4f4
commit 4525274e40
3 changed files with 3 additions and 2 deletions

View File

@@ -124,7 +124,7 @@ func (P *PurchaseHandler) CreateStore2(db *dao.DaoDB, storeID int, userName stri
},
},
}
if resp, err := a.BatchCreateStore(ShopBatchCreateStoreParam); err != nil {
if resp, err := a.BatchCreateStore(ShopBatchCreateStoreParam); err != nil || resp.ResultList[0].Store.StoreId == 0 {
globals.SugarLogger.Debugf("BatchCreateStore err=%v", err)
return "", err
} else {