| 12345678910111213141516171819202122232425262728293031 |
- <?php
- namespace App\Events;
- use App\Http\Controllers\Controller;
- use App\Listeners\InformWMSReceivedListener;
- use Illuminate\Queue\SerializesModels;
- use Illuminate\Foundation\Events\Dispatchable;
- use Illuminate\Broadcasting\InteractsWithSockets;
- use Illuminate\Support\Facades\Auth;
- class InformWMSReceivedEvent
- {
- use Dispatchable, InteractsWithSockets, SerializesModels;
- public $rejectedBill;
- public function __construct($rejectedBill)
- {
- $this->rejectedBill=$rejectedBill;
- }
- public function directRun()
- {
- if(config('api.jianshang_rejecteds_log_switch'))Controller::logS(__METHOD__,__FUNCTION__,'直接调用推送WMS事件,退单号:'.$this->rejectedBill['logistic_number_return'],Auth::user()['id']);
- return (new InformWMSReceivedListener())->handle($this);
- }
- }
- //通知WMS接收
|