Browse Source

完善功能

gorden 9 months ago
parent
commit
2cb1e4a40c
1 changed files with 3 additions and 0 deletions
  1. 3 0
      app/admin/service/notify/RechargeService.php

+ 3 - 0
app/admin/service/notify/RechargeService.php

@@ -90,6 +90,9 @@ class RechargeService
         }
         $addedId = $ruleJson['added'];
         $added = RuleAdded::find($addedId);
+        if (!$added){
+            throw new BusinessException('增值套包数据异常');
+        }
         $diff = $added->rule_added_goods_diff;
 
         $components = RuleAddedComponent::where('join_component_rule_added_id', $addedId)->get()->toArray();