浏览代码

自定义充值

Gorden 4 月之前
父节点
当前提交
e3ec9933c6
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/admin/controller/notify/RechargeController.php

+ 1 - 1
app/admin/controller/notify/RechargeController.php

@@ -147,7 +147,7 @@ class RechargeController
                 RechargeService::disposeRoleCoupon($goodsAttributeJson, $couponParams, $payDetail->join_pay_member_id);
             }
             // 计算充值提成
-            if (!empty($payDetail->join_pay_object_json)) {
+            if (!empty($payDetail->join_pay_object_json) && $addedNbr > 0) {
                 $payObjectJson = json_decode($payDetail->join_pay_object_json, true);
                 if (isset($payObjectJson['order_id'])) {
                     // 没有提成过