|
@@ -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;
|
|
|
}
|
|
|
|