摘要:
class Check{ public function handle($request, \Closure $next) { $token = $request->get('token');// print_r($token);die(); if (empty($token)) { echo 't 阅读全文
posted @ 2021-12-30 13:12
南瓜不能吃
阅读(287)
评论(0)
推荐(0)
摘要:
//controller /** * 显示结算页面 * * @return \think\Response */ public function create() { //登录检测 if(!session('?user_info')){ //没有登录 跳转到登录页面 //设置登录成功后的跳转地址 / 阅读全文
posted @ 2021-12-30 12:51
南瓜不能吃
阅读(90)
评论(0)
推荐(0)
摘要:
控制层/加入购物车 表单提交 public function addcart() {// if(request()->isGet()){// //如果是get请求 跳转到首页// $this->redirect('home/index/index');// } //接收数据 $params = in 阅读全文
posted @ 2021-12-30 12:49
南瓜不能吃
阅读(118)
评论(0)
推荐(0)
摘要:
在Base层: <?phpdeclare (strict_types=1);namespace app\home\controller;use app\BaseController;use app\brand\model\Category;use think\App;use think\facade 阅读全文
posted @ 2021-12-30 12:37
南瓜不能吃
阅读(243)
评论(0)
推荐(0)
浙公网安备 33010602011771号