Sfoglia il codice sorgente

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

xupuyuan 10 mesi fa
parent
commit
8ae21b603d
1 ha cambiato i file con 15 aggiunte e 3 eliminazioni
  1. 15 3
      app/controller/admin/order/Order.php

+ 15 - 3
app/controller/admin/order/Order.php

@@ -357,9 +357,21 @@ class Order extends BaseController
357 357
                 $score = $this->getValue('user_sign_score', ['order_id' => $order_id, 'status' => 1,'source_type' => 3,'uid' => $uid,], 'reward_score');
358 358
                 $payScore = $this->getValue('user_sign_score', ['order_id' => $order_id, 'status' => 1,'pm' => 2,'uid' => $uid,], 'reward_score');
359 359
 //            // 取出推广赠送的积分和推广人的 uid
360
-            $spreadScore = $this->getValue('user_sign_score', ['order_id' => $order_id, 'status' => 1,'pm' => 2,'source_type' => 3,['mark','like','%推广%'],], 'reward_score');
361
-            $spreadUid = $this->getValue('user_sign_score', [['order_id' => $order_id], ['status' => 1],['pm' => 2],['source_type' => 3],['mark','like','%推广%'],], 'uid');
362
-//            // 删除所有相关积分记录
360
+            $spreadScore = $this->getValue('user_sign_score', [
361
+                ['order_id', '=', $order_id],
362
+                ['status', '=', 1],
363
+                ['pm', '=', 2],
364
+                ['source_type', '=', 3],
365
+                ['mark', 'like', '%推广%'],
366
+            ], 'reward_score');
367
+            $spreadUid = $this->getValue('user_sign_score', [
368
+                ['order_id', '=', $order_id],
369
+                ['status', '=', 1],
370
+                ['pm', '=', 2],
371
+                ['source_type', '=', 3],
372
+                ['mark', 'like', '%推广%'],
373
+            ], 'uid');
374
+            //            // 删除所有相关积分记录
363 375
             $this->backupAndDelete('user_sign_score', ['order_id' => $order_id]);
364 376
 //            // 贡献值
365 377
 //           $gongXian = $this->getValue('user_sign_gongxian', ['order_id' => $order_id, 'status' => 1,'type' => 1,'uid' => $uid,], 'number');