...
|
...
|
@@ -14,9 +14,16 @@ use think\Db; |
|
|
|
|
|
class Index extends WechatBase
|
|
|
{
|
|
|
protected $user_id;
|
|
|
function _initialize()
|
|
|
{
|
|
|
parent::_initialize();
|
|
|
//判断是否授权
|
|
|
$user_id = get_current_user_id();
|
|
|
if(empty($user_id)){
|
|
|
$this->redirect('user/authorization_view');
|
|
|
}
|
|
|
$this->user_id = $user_id;
|
|
|
}
|
|
|
public function index(){
|
|
|
$domain_name = $this->request->domain();//域名
|
...
|
...
|
|