11 2021 档案
摘要:将下载的文件放在 public/plugins/alipay 在 config 支付方法 'pay_type' => [ 'alipay' => ['pay_code'=>'alipay', 'pay_name'=>'支付宝', 'logo'=>'/static/home/img/_/pay2.jp
阅读全文
摘要:订单表 public function create() { //登录检测 if(!session('?user_info')){ //没有登录 跳转到登录页面 //设置登录成功后的跳转地址 //sessr/create');// session('backion('back_url', 'home
阅读全文
摘要:链接下载 composer require lcobucci/jwt 3.3 在extend/tools/jwt创建Token.php 注意:如果没有该目录,则 <?php namespace tools\jwt; use Lcobucci\JWT\Builder;use Lcobucci\JWT\
阅读全文
摘要:添加: 详情页接到的值:goos_id,spec_goods_id,number 控制层: public function cart(Request $request) {// 1. 接收数据 $params= input();// 2. 验证 //加入购物车CartLogic::addCart($
阅读全文
摘要:详情html 页面 <!DOCTYPE html><html><script src="https://cdn.staticfile.org/jquery/2.1.1/jquery.min.js"></script><script src="https://cdn.staticfile.org/tw
阅读全文
摘要:if (!function_exists('get_cate_list')) { //递归函数 实现无限级分类列表 function get_cate_list($list,$pid=0,$level=0) { static $tree = array(); foreach($list as $ro
阅读全文
摘要:控制器 public function save(Request $request) {// echo 11;die(); $phone=input(); $last_time=Cache::store('redis')->get('register_time');// return json($l
阅读全文
摘要:public function excel() { $PHPExcel = new \PHPExcel(); $PHPSheet = $PHPExcel->getActiveSheet(); // 设置个表格标题 $PHPSheet->setTitle("代理商"); $PHPSheet->setC
阅读全文
摘要:第一步: 使用Composer安装ThinkPHP5的图像处理类库: composer require topthink/think-image
阅读全文
摘要:controller 控制器 class San extends Controller{ function tree() { $list = Category::where('pid', 0)->select(); $this->assign('list', $list); return view(
阅读全文
浙公网安备 33010602011771号