标签: 常用类库

4 篇文章

签名验证类
<?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…