This commit is contained in:
richboo111
2022-10-08 13:51:41 +08:00
parent 2eec6d7304
commit d4bf3e62bd
2 changed files with 2 additions and 2 deletions

View File

@@ -61,7 +61,7 @@ func (a *API) BatchCreateStore(param *shop_batchCreateStore_request.ShopBatchCre
if response.Code != RequestSuccessCode {
return nil, errors.New(response.SubMsg)
}
return response.Data, nil
return response.Data, err
}
// EditStore 编辑门店

View File

@@ -67,7 +67,7 @@ func MustMarshal(obj interface{}) []byte {
}
func TryInterface2Int64(data interface{}) (num int64, err error) {
if data == nil {
if data == nil && IsNil(data) {
return num, errors.New("data is nil")
}
if dataNumber, ok := data.(int64); ok {