hefei 1 år sedan
förälder
incheckning
34fa9d55d5
1 ändrade filer med 2 tillägg och 2 borttagningar
  1. 2 2
      app/command/repairPvLog.php

+ 2 - 2
app/command/repairPvLog.php

@@ -24,10 +24,10 @@ class repairPvLog extends Command
24 24
      */
25 25
     protected function execute(Input $input, Output $output)
26 26
     {
27
-        $user_id_list = Db::name('user')->where([['pv','=',0],['contribute','>',0]])->column('uid');
27
+        $user_id_list = Db::name('user')->where([['pv','=',0]])->column('uid');
28 28
         if($user_id_list){
29 29
             foreach ($user_id_list as $user_id) {
30
-                $order_list = Db::name('store_order')->where(['uid' => $user_id,'paid' => 1,'gzc' => 1])->select();
30
+                $order_list = Db::name('store_order')->where(['uid' => $user_id,'paid' => 1])->where([['status','in','2,3']])->select();
31 31
                 if($order_list) {
32 32
                     $pv = 0;
33 33
                     foreach ($order_list as $order) {