Răsfoiți Sursa

完善功能

gorden 8 luni în urmă
părinte
comite
a754017d01

+ 5 - 2
app/admin/controller/notify/RechargeController.php

@@ -53,6 +53,9 @@ class RechargeController
         try {
             _syslog("APP充值","APP充值成功");
             return $this->disposePaySuccess($data['pay_id']);
+        }catch(BusinessException $e){
+            _syslog("APP充值","APP充值失败");
+            return json_fail("处理失败");
         }catch (\Exception $e){
             _syslog("APP充值","APP充值失败");
             return json_fail("处理失败");
@@ -79,8 +82,8 @@ class RechargeController
 
         $payDetail = PayDetail::find($payId);
         if (!$payDetail || $payDetail->pay_status != 'SUCCESS') {
-            throw new BusinessException("支付状态异常");
-//            return json_fail("支付状态异常");
+            // throw new BusinessException("支付状态异常");
+           return json_fail("支付状态异常");
         }
         $extendJson = [];
         if (!empty($payDetail->pay_extend_json)) {

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

@@ -31,6 +31,10 @@ class RechargeService
             throw new BusinessException('订单数据异常');
         }
         $goods = Goods::find($orderSheet->join_sheet_goods_id);
+        // 自定义充值产品
+        if($goods->join_goods_category_id == 210){
+            return 0;
+        }
         if (empty($goods->goods_attribute_json)) {
             throw new BusinessException('产品数据异常');
         }