<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace Module\Vendor\Sms; use ModStart\Core\Exception\BizException; use ModStart\Core\Job\BaseJob; use Module\Vendor\Log\Logger; use Module\Vendor\Provider\SmsSender\SmsSenderProvider; class SmsSendJob extends BaseJob { public $phone; public $template; public $templateData; public static function create($Z_ag6, $IulMt, $AIfUa) { goto aHeXr; WyG9H: $ZnNP5->template = $IulMt; goto yChni; SX2Vd: $ZnNP5->phone = $Z_ag6; goto WyG9H; yChni: $ZnNP5->templateData = $AIfUa; goto Hhpz3; Hhpz3: app('Illuminate\\Contracts\\Bus\\Dispatcher')->dispatch($ZnNP5); goto zn2TE; aHeXr: $ZnNP5 = new static(); goto SX2Vd; zn2TE: } public function handle() { goto spq2F; CoFo1: try { goto GvqUB; PQ5sa: Logger::info('Sms', 'End', $this->phone . ' - ' . json_encode($yCUD1, JSON_UNESCAPED_UNICODE)); goto b1ZFu; osBrC: BizException::throwsIfResponseError($yCUD1); goto PQ5sa; FTjo1: $yCUD1 = SmsSenderProvider::get($ugwYT)->send($this->phone, $this->template, $this->templateData); goto osBrC; GvqUB: BizException::throwsIfEmpty('短信发送未设置', $ugwYT); goto FTjo1; b1ZFu: } catch (BizException $Q19lV) { Logger::error('Sms', 'Error', $this->phone . ' - ' . $Q19lV->getMessage()); } goto FH5ZT; vTKcB: Logger::info('Sms', 'Start', $EGhOC); goto GZ_R8; GZ_R8: $ugwYT = app()->config->get('SmsSenderProvider'); goto CoFo1; spq2F: $EGhOC = $this->phone . ' - ' . $this->template . ' - ' . json_encode($this->templateData, JSON_UNESCAPED_UNICODE); goto vTKcB; FH5ZT: } }