<?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($xnZh3, $eMuYk, $EIJx6) { goto ZEM_a; v6U8g: $jm4we->templateData = $EIJx6; goto M_or_; ZEM_a: $jm4we = new static(); goto T4rfV; M_or_: app('Illuminate\\Contracts\\Bus\\Dispatcher')->dispatch($jm4we); goto dj7LT; u4MoW: $jm4we->template = $eMuYk; goto v6U8g; T4rfV: $jm4we->phone = $xnZh3; goto u4MoW; dj7LT: } public function handle() { goto Y13UT; c0QCV: try { goto i1QaQ; KGNSr: $gMg9x = SmsSenderProvider::get($pXrNS)->send($this->phone, $this->template, $this->templateData); goto FMA6B; FMA6B: BizException::throwsIfResponseError($gMg9x); goto oVqaM; i1QaQ: BizException::throwsIfEmpty('短信发送未设置', $pXrNS); goto KGNSr; oVqaM: Logger::info('Sms', 'End', $this->phone . ' - ' . json_encode($gMg9x, JSON_UNESCAPED_UNICODE)); goto YYBnA; YYBnA: } catch (BizException $re7gC) { Logger::error('Sms', 'Error', $this->phone . ' - ' . $re7gC->getMessage()); } goto ZW7jY; ViP57: Logger::info('Sms', 'Start', $Da747); goto lAu4E; lAu4E: $pXrNS = app()->config->get('SmsSenderProvider'); goto c0QCV; Y13UT: $Da747 = $this->phone . ' - ' . $this->template . ' - ' . json_encode($this->templateData, JSON_UNESCAPED_UNICODE); goto ViP57; ZW7jY: } }