<?php
/*
 本代码由 口号帮 创建
 创建时间 2019-05-08 16:22:09
 技术支持 口号帮 
 严禁反编译、逆向等任何形式的侵权行为，违者将追究法律责任
*/

namespace App\Jobs;use App\Handler\JPushMessage;use Illuminate\Bus\Queueable;use Illuminate\Queue\SerializesModels;use Illuminate\Queue\InteractsWithQueue;use Illuminate\Contracts\Queue\ShouldQueue;use Illuminate\Foundation\Bus\Dispatchable;use Illuminate\Support\Facades\Log;class PushMessage implements ShouldQueue{use Dispatchable,InteractsWithQueue,Queueable,SerializesModels;protected $jpush_config;protected $msgId;protected $send_platform;protected $app;protected $user_type;protected $push_id;public function __construct($jpush_config,$msgId,$send_platform,$user_type,$push_id){$this->jpush_config=$jpush_config;$this->msgId=$msgId;$this->user_type=$user_type;$this->push_id=$push_id;}public function handle(){$P2g0=new JPushMessage();$push=$P2g0;$P2g0=$this->user_type=='allUsers';if($P2g0)goto P2gBodyx2;goto P2gNextx2;P2gBodyx2:$push->allPlatformSend('all',$this->msgId,$this->jpush_config);goto P2gx1;P2gNextx2:if($this->push_id)goto P2gBodyx4;goto P2gNextx4;P2gBodyx4:$push->setCustomPush('all',$this->msgId,$this->jpush_config,$this->push_id);goto P2gx3;P2gNextx4:P2gx3:P2gx1:}}
?>