程旭源 vor 8 Monaten
Ursprung
Commit
50d2843b83
1 geänderte Dateien mit 4 neuen und 12 gelöschten Zeilen
  1. 4 12
      application/admin/command/Runrecord.php

+ 4 - 12
application/admin/command/Runrecord.php

@@ -29,20 +29,12 @@ class Runrecord extends Command
         $action= $input->getArgument('action');
         switch ($action){
             case "upincome"://更新用户收益
-
-                while (true) {
-                    $result= action("api/index/upincome");
-                    $output->writeln('131');
-                    sleep(600);
-                }
+                $result= action("api/index/upincome");
+                $output->writeln($result);
                 break;
             case "runrecord"://记录广告收益
-                while (true) {
-                    $result= action("api/index/runrecord");
-                    $output->writeln($result);
-                    sleep(60);
-                }
-
+                $result= action("api/index/runrecord");
+                $output->writeln($result);
                 break;
         }