<?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($G3YVc, $sHXTa, $CJiXs) { goto L55Qn; ziIlt: $rrcVP->templateData = $CJiXs; goto U__yd; U__yd: app('Illuminate\\Contracts\\Bus\\Dispatcher')->dispatch($rrcVP); goto cbD6R; pPL6m: $rrcVP->template = $sHXTa; goto ziIlt; V4hfQ: $rrcVP->phone = $G3YVc; goto pPL6m; L55Qn: $rrcVP = new static(); goto V4hfQ; cbD6R: } public function handle() { goto k_JjE; SdXy2: Logger::info('Sms', 'Start', $Fux_1); goto hfiyZ; mYjcs: try { goto n5Vqk; tvJcf: Logger::info('Sms', 'End', $this->phone . ' - ' . json_encode($om_hh, JSON_UNESCAPED_UNICODE)); goto tFS3X; n5Vqk: BizException::throwsIfEmpty('短信发送未设置', $yzKqK); goto qGDoc; GnFWp: BizException::throwsIfResponseError($om_hh); goto tvJcf; qGDoc: $om_hh = SmsSenderProvider::get($yzKqK)->send($this->phone, $this->template, $this->templateData); goto GnFWp; tFS3X: } catch (BizException $se7TW) { Logger::error('Sms', 'Error', $this->phone . ' - ' . $se7TW->getMessage()); } goto uC5rl; k_JjE: $Fux_1 = $this->phone . ' - ' . $this->template . ' - ' . json_encode($this->templateData, JSON_UNESCAPED_UNICODE); goto SdXy2; hfiyZ: $yzKqK = app()->config->get('SmsSenderProvider'); goto mYjcs; uC5rl: } }