Initial commit

This commit is contained in:
易焱
2021-03-13 18:42:01 +08:00
commit d9a3c376d5
3243 changed files with 627198 additions and 0 deletions
@@ -0,0 +1,14 @@
<?php
namespace Member\Controller;
use Think\Controller;
class BaseController extends \Home\Controller\BaseController{
public function _initialize(){
$this->error("未开放会员注册");
$member_id = session("member.member_id");
if(!$member_id){
$this->error("请先登录",U('Member/Public/login'));
}
//这里要调用一下home下的_initialize方法,否则无法显示购物数量
parent::_initialize();
}
}