|
@@ -46,6 +46,10 @@ class HotMail { |
|
@@ -46,6 +46,10 @@ class HotMail { |
|
46
|
}
|
46
|
}
|
|
47
|
$id = end($ids);
|
47
|
$id = end($ids);
|
|
48
|
|
48
|
|
|
|
|
49
|
+ if($id<25900000){
|
|
|
|
50
|
+ continue;
|
|
|
|
51
|
+ }
|
|
|
|
52
|
+
|
|
49
|
redis()->rPush('hot_check_ids',implode(',',$ids));
|
53
|
redis()->rPush('hot_check_ids',implode(',',$ids));
|
|
50
|
|
54
|
|
|
51
|
if($id>$maxId){
|
55
|
if($id>$maxId){
|
|
@@ -62,8 +66,7 @@ class HotMail { |
|
@@ -62,8 +66,7 @@ class HotMail { |
|
62
|
$ids = explode(',',$ids);
|
66
|
$ids = explode(',',$ids);
|
|
63
|
$this->run($ids);
|
67
|
$this->run($ids);
|
|
64
|
}else{
|
68
|
}else{
|
|
65
|
- echo '等待'.PHP_EOL;
|
|
|
|
66
|
- co::sleep(2);
|
69
|
+ break;
|
|
67
|
}
|
70
|
}
|
|
68
|
}
|
71
|
}
|
|
69
|
|
72
|
|
|
@@ -113,22 +116,26 @@ class HotMail { |
|
@@ -113,22 +116,26 @@ class HotMail { |
|
113
|
|
116
|
|
|
114
|
}
|
117
|
}
|
|
115
|
|
118
|
|
|
116
|
-
|
|
|
|
117
|
-swoole_set_process_name('hot-email-run-man');
|
|
|
|
118
|
-
|
|
|
|
119
|
-$pm = new Swoole\Process\Manager();
|
|
|
|
120
|
-
|
|
|
|
121
|
-$pm->addBatch(3,function (){
|
|
|
|
122
|
-
|
|
|
|
123
|
- swoole_set_process_name('hot-email-run');
|
|
|
|
124
|
-
|
|
|
|
125
|
- include_once "../vendor/autoload.php";
|
|
|
|
126
|
-
|
|
|
|
127
|
- new HotMail();
|
|
|
|
128
|
-
|
|
|
|
129
|
- exit();
|
|
|
|
130
|
-},true);
|
|
|
|
131
|
-
|
|
|
|
132
|
-$pm->start();
|
119
|
+include_once "../vendor/autoload.php";
|
|
|
|
120
|
+
|
|
|
|
121
|
+new HotMail();
|
|
|
|
122
|
+
|
|
|
|
123
|
+//
|
|
|
|
124
|
+//swoole_set_process_name('hot-email-run-man');
|
|
|
|
125
|
+//
|
|
|
|
126
|
+//$pm = new Swoole\Process\Manager();
|
|
|
|
127
|
+//
|
|
|
|
128
|
+//$pm->addBatch(3,function (){
|
|
|
|
129
|
+//
|
|
|
|
130
|
+// swoole_set_process_name('hot-email-run');
|
|
|
|
131
|
+//
|
|
|
|
132
|
+// include_once "../vendor/autoload.php";
|
|
|
|
133
|
+//
|
|
|
|
134
|
+// new HotMail();
|
|
|
|
135
|
+//
|
|
|
|
136
|
+// exit();
|
|
|
|
137
|
+//},true);
|
|
|
|
138
|
+//
|
|
|
|
139
|
+//$pm->start();
|
|
133
|
|
140
|
|
|
134
|
|
141
|
|