1234567891011121314151617181920212223242526272829303132333435363738 |
- <?php
- namespace App\Jobs;
- use App\Servers\MemberClanServer;
- use Illuminate\Bus\Queueable;
- use Illuminate\Queue\SerializesModels;
- use Illuminate\Queue\InteractsWithQueue;
- use Illuminate\Contracts\Queue\ShouldQueue;
- use Illuminate\Foundation\Bus\Dispatchable;
- class CreatBothJob implements ShouldQueue
- {
- use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
- private $mId;
- private $pId;
- /**
- * Create a new job instance.
- *
- * @return void
- */
- public function __construct($mId,$pId)
- {
- $this->mId=$mId;
- $this->pId=$pId;
- }
- /**
- * Execute the job.
- *
- * @return void
- */
- public function handle()
- {
- MemberClanServer::creatServer()->creatBoth($this->mId,$this->pId);
- }
- }
|