每日归档: 2021年3月4日

6 篇文章

签名验证类
<?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…
RSS订阅示例
<?php /** * Created by PhpStorm. * User: Administrator * Date: 2018/11/29 0029 * Time: 16:39 */ namespace app\index\controller; use app\common\controller\Rss; use app\commo…
PayPal支付demo
执行命令加载composer composer require "paypal/rest-api-sdk-php" 页面demo {extend name="layout/user_main" /} {block name="content"} <div class="pad_lr12 " style="margin-top: 5rem;"&…