jason hai 4 meses
pai
achega
9d4eb37047
Modificáronse 1 ficheiros con 3 adicións e 2 borrados
  1. 3 2
      application/api/command/Task.php

+ 3 - 2
application/api/command/Task.php

@@ -47,11 +47,12 @@ class Task extends Command
                 // 判断空投是否只够6个
                 $res = $productOrder::where('user_id', $item->id)->where('product_id', $ids)->where('type_id', 5)->count();
                 if($res < 6){
-                    $num = $num -  $res;
+                    $num = 6 -  $res;
                     $productOrder::setPopularNoAreaOrder($num, 0, 0, $ids, $item->id, 5);
                     $i ++;
+
                 }
-             
+                (new Output())->writeln("会员" . $item->id . "发放空投成功:" . $num);
             }
         });
         return $i;