|
@@ -5,7 +5,7 @@ use Workerman\Worker as WO;
|
|
|
class MobileActivity extends Com{
|
|
|
public static function run(){
|
|
|
$work=new WO();
|
|
|
- $work->onWorkerStart=function ($conn){
|
|
|
+ $work->onWorkerStart=function (WO $worker){
|
|
|
while (true){
|
|
|
$ids=Mobile::where('activity_time_end','<=',time())
|
|
|
->where('is_activity',1)
|