<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace Module\Vendor\Job; 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($G3YVc, $sHXTa, $CJiXs) { goto aM0xm; YBk89: app('Illuminate\\Contracts\\Bus\\Dispatcher')->dispatch($rrcVP); goto EfMl_; WNjZU: $rrcVP->template = $sHXTa; goto owXsV; aM0xm: $rrcVP = new static(); goto YBs5w; owXsV: $rrcVP->templateData = $CJiXs; goto YBk89; YBs5w: $rrcVP->phone = $G3YVc; goto WNjZU; EfMl_: } public function handle() { goto tTJ5C; vz0pz: Logger::info('Sms', 'Start', $Fux_1); goto rRIER; QRemt: try { goto IKFFo; bn7mK: BizException::throwsIfResponseError($om_hh); goto DnIr0; bYGiq: $om_hh = SmsSenderProvider::get($yzKqK)->send($this->phone, $this->template, $this->templateData); goto bn7mK; DnIr0: Logger::info('Sms', 'End', $this->phone . ' - ' . json_encode($om_hh, JSON_UNESCAPED_UNICODE)); goto HNDSd; IKFFo: BizException::throwsIfEmpty('短信发送未设置', $yzKqK); goto bYGiq; HNDSd: } catch (BizException $se7TW) { Logger::error('Sms', 'Error', $this->phone . ' - ' . $se7TW->getMessage()); } goto aAiT9; tTJ5C: $Fux_1 = $this->phone . ' - ' . $this->template . ' - ' . json_encode($this->templateData, JSON_UNESCAPED_UNICODE); goto vz0pz; rRIER: $yzKqK = app()->config->get('SmsSenderProvider'); goto QRemt; aAiT9: } }