Explorar o código

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

xupuyuan hai 10 meses
pai
achega
b86ccbe185
Modificáronse 1 ficheiros con 3 adicións e 2 borrados
  1. 3 2
      app/controller/admin/order/Order.php

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

@@ -349,9 +349,10 @@ class Order extends BaseController
349 349
             $this->backupAndDelete('store_group_order', ['group_order_id' => $group_order_id]);
350 350
 //             取出并删除 pv
351 351
                 $pv = $this->getValue('user_pv_log', ['order_id' => $order_id, 'status' => 1,], 'pv');
352
-                $this->backupAndDelete('user_pv_log', ['order_id' => $order_id]);
352
+                $this->backupAndDelete('user_pv_log', ['order_id' => $order_id]); //status状态判断还没
353 353
 //            取出 vr 消耗
354
-//           $payVr = $this->getValue('user_sign_vr', ['order_id' => $order_id, 'type' => 2,], 'number');
354
+           $payVr = $this->getValue('user_sign_vr', ['order_id' => $order_id, 'type' => 2,], 'number');
355
+           $this->backupAndDelete('user_sign_vr', ['order_id' => $order_id]);
355 356
 //            取出购买赠送积分 / 支出积分
356 357
 //                $score = $this->getValue('user_sign_score', ['order_id' => $order_id, 'status' => 1,'source_type' => 3,'uid' => $uid,], 'reward_score');
357 358
 //                $payScore = $this->getValue('user_sign_score', ['order_id' => $order_id, 'status' => 1,'pm' => 2,'uid' => $uid,], 'reward_score');