Преглед изворни кода

后台-订单-新增撤回功能

xupuyuan пре 10 месеци
родитељ
комит
678cecc6c4
1 измењених фајлова са 6 додато и 6 уклоњено
  1. 6 6
      app/controller/admin/order/Order.php

+ 6 - 6
app/controller/admin/order/Order.php

@@ -374,12 +374,12 @@ class Order extends BaseController
374 374
             //            // 删除所有相关积分记录
375 375
             $this->backupAndDelete('user_sign_score', ['order_id' => $order_id]);
376 376
 //            // 贡献值
377
-//           $gongXian = $this->getValue('user_sign_gongxian', ['order_id' => $order_id, 'status' => 1,'type' => 1,'uid' => $uid,], 'number');
378
-//            $spreadGongXian = 0;
379
-//            if ($spreadUid) {
380
-//                $spreadGongXian = $this->getValue('user_sign_gongxian', ['order_id' => $order_id, 'status' => 1,'type' => 1,'uid' => $spreadUid,], 'number');
381
-//            }
382
-//            $this->backupAndDelete('user_sign_gongxian', ['order_id' => $order_id]);
377
+           $gongXian = $this->getValue('user_sign_gongxian', ['order_id' => $order_id, 'status' => 1,'type' => 1,'uid' => $uid,], 'number');
378
+            $spreadGongXian = 0;
379
+            if ($spreadUid) {
380
+                $spreadGongXian = $this->getValue('user_sign_gongxian', ['order_id' => $order_id, 'status' => 1,'type' => 1,'uid' => $spreadUid,], 'number');
381
+            }
382
+            $this->backupAndDelete('user_sign_gongxian', ['order_id' => $order_id]);
383 383
 //            // 养老金 / 推广养老金 / 推广佣金
384 384
 //            $yangLaoJin = $this->getValue('user_bill', ['link_id' => $order_id, 'status' => 1,'pm' => 1,'uid' => $uid,], 'number');
385 385
 //            $spreadYlj = 0;