jason 4 месяцев назад
Родитель
Сommit
9d4eb37047
1 измененных файлов с 3 добавлено и 2 удалено
  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;