Explorar o código

会员合伙人

gorden hai 1 mes
pai
achega
0b8f230417
Modificáronse 1 ficheiros con 10 adicións e 7 borrados
  1. 10 7
      app/admin/controller/notify/RechargeController.php

+ 10 - 7
app/admin/controller/notify/RechargeController.php

@@ -133,13 +133,16 @@ class RechargeController
             $memberAccount->save();
            
             // 根据最新的数据,更新用户等级
-            $member = Member::find($payDetail->join_pay_member_id);
-            $roleId = RechargeService::disposeRole($payDetail->join_pay_member_id, $payDetail->pay_amount);
-            if ($roleId && $member->join_member_role_id != $roleId) {
-                $member->join_member_role_id = $roleId;
-                $member->save();
-                // 处理增值套包、组件
-                RechargeService::disposeAdded($roleId, $payDetail->join_pay_member_id);
+            // 临时屏蔽该会员升级
+            if (!in_array($payDetail->join_pay_member_id,['MR2409132254Z9VW'])) {
+                $member = Member::find($payDetail->join_pay_member_id);
+                $roleId = RechargeService::disposeRole($payDetail->join_pay_member_id, $payDetail->pay_amount);
+                if ($roleId && $member->join_member_role_id != $roleId) {
+                    $member->join_member_role_id = $roleId;
+                    $member->save();
+                    // 处理增值套包、组件
+                    RechargeService::disposeAdded($roleId, $payDetail->join_pay_member_id);
+                }
             }
             Db::commit();