Demo.php
1.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<?php
namespace App\Console\Commands;
use App\Models\EList;
use Helper\Mail\Mail;
use Illuminate\Console\Command;
use function Co\run;
class Demo extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'demo';
/**
* The console command description.
*
* @var string
*/
protected $description = '测试命令';
/**
* Execute the console command.
*
* @return int
*/
public function handle()
{
// run(function (){
// go(function (){
//
//
// $redis = swoole_redis();
////// $a = $redis->eval(...swoole_redis_add('asdad:1',1,600));
////// var_dump($a);
// for ($i=1;$i<=345;$i++){
// $redis->rPush('syncMailBody',$i);
// }
//
//// $redis->rPush('syncMailBody',301);
//// $redis->rPush('syncMailBody',302);
//// $redis->rPush('syncMailBody',303);
//// $redis->rPush('syncMailBody',304);
//// $redis->rPush('syncMailBody',305);
//// $redis->rPush('syncMailBody',306);
//// $redis->rPush('syncMailBody',307);
//// $redis->rPush('syncMailBody',308);
//// $redis->rPush('syncMailBody',309);
//
// $redis->set('syncmailbodystop',1);
//
// });
//
// });
//
return Command::SUCCESS;
}
}