This commit is contained in:
richboo111
2023-12-13 14:45:49 +08:00
parent ffb6226527
commit fb44b8721d

View File

@@ -628,7 +628,7 @@ func (a *API) GetStorePackageFee(storeID int64) (int64, error) {
return 0, errors.New(result.LogId + ":" + result.SubMsg)
}
globals.SugarLogger.Debugf("GetStorePackageFee test resullt:%s", utils.Format4Output(result, false))
if result.Data == nil {
if result.Data.PackageFee == nil || result.Data == nil {
return 0, err
} else {
return result.Data.PackageFee.Amount, nil