2021年8月5日
摘要: 首先需要引入基类 use think\Cache; 然后在config.php下的cache中添加 'redis' => [ // 驱动方式 'type' => 'redis', // 服务器地址 'host' => '127.0.0.1',], 然后可以普通的检测一下 public functio 阅读全文
posted @ 2021-08-05 20:45 二十一年春 阅读(108) 评论(0) 推荐(0)
摘要: phpmailer 安装或者下载方式: 1、从 github 上下载: https://github.com/PHPMailer/PHPMailer/ 2、使用 composer 安装: composer require phpmailer/phpmailer 实例 public function 阅读全文
posted @ 2021-08-05 16:32 二十一年春 阅读(132) 评论(0) 推荐(3)
摘要: public function order() { $gid = input('gid'); $uid = session('id'); //接收当前用户的积分 $count = input('count'); /* *此步骤可最后写 *防止用户刷单 限制用户每天只能兑换3件商品 *思路: * 查询 阅读全文
posted @ 2021-08-05 10:58 二十一年春 阅读(140) 评论(0) 推荐(3)
摘要: /* * 200 签到成功 (第一次签到提示) * 201 恭喜您签到成功 (连续签到提示) * 202 请勿重复签到(当天已经签过到了) * 203 您已断签 已为您重新签到 * */ public function sign(){ $uid = session('id');//获取用户id // 阅读全文
posted @ 2021-08-05 09:15 二十一年春 阅读(205) 评论(0) 推荐(1)