<?php declare (strict_types = 1); namespace app\middleware; use think\exception\ValidateException; use think\facade\Validate; class SignCheck { // sign请求验证规则 public static …
<?php namespace app\service; use think\exception\ValidateException; use think\facade\Filesystem; class Upload { public $error = ''; /** * 保存单图 * * @param $file * @param str…
<?php namespace app\service; use app\model\SmsLog; class Sms { public $error = ''; private $template = [ // 充值通过 'recharge_pass' => ['template'=>'尊敬的尾号${phone}用户,您于…
<?php namespace app\service; use PHPMailer\PHPMailer\PHPMailer; use PHPMailer\PHPMailer\SMTP; use think\facade\Config; class Email { public $error; public function send($em…