切换导航条
此项目
正在载入...
登录
root
/
chengxiang
·
提交
转到一个项目
GitLab
转到仪表盘
项目
活动
文件
提交
管道
0
构建
0
图表
里程碑
问题
0
合并请求
0
成员
标记
维基
派生
网络
创建新的问题
下载为
邮件补丁
差异文件
浏览文件
作者
王晓刚
6 years ago
提交
8d425f6454f03f5935b5908aa35bb984b47aa96a
1 个父辈
63c996ac
1 个管道 的构建
通过
耗费 0 秒
我的托管
变更
3
构建
1
隐藏空白字符变更
内嵌
并排对比
正在显示
3 个修改的文件
包含
7 行增加
和
7 行删除
app/index/controller/FormController.php
app/index/controller/MeTrusteeshipController.php
simplewind/cmf/controller/WeChatBaseController.php
app/index/controller/FormController.php
查看文件 @
8d425f6
...
...
@@ -31,9 +31,9 @@ class FormController extends WeChatBaseController
function
_initialize
()
{
//判断用户是否微信浏览器打开
//
$this->isWechat();
$this
->
isWechat
();
//判断是否手机端
//
$this->isMobile();
$this
->
isMobile
();
//微信授权
parent
::
_initialize
();
$this
->
checkWeChatUserLogin
();
...
...
app/index/controller/MeTrusteeshipController.php
查看文件 @
8d425f6
...
...
@@ -25,14 +25,14 @@ class MeTrusteeshipController extends WeChatBaseController
function
_initialize
()
{
//判断用户是否微信浏览器打开
//
$this->isWechat();
$this
->
isWechat
();
//判断是否手机端
//
$this->isMobile();
$this
->
isMobile
();
//微信授权
parent
::
_initialize
();
$this
->
checkWeChatUserLogin
();
//阻止拉黑用户
//
$this->ban();
$this
->
ban
();
}
//进入我的托管页面
public
function
index
(){
...
...
simplewind/cmf/controller/WeChatBaseController.php
查看文件 @
8d425f6
...
...
@@ -203,8 +203,8 @@ class WeChatBaseController extends BaseController
*/
public
function
checkWeChatUserLogin
()
{
$user
=
Db
::
name
(
'user'
)
->
where
(
'id'
,
2
)
->
find
();
cmf_update_current_user
(
$user
);
// $user=Db::name('user')->where('id',2)->find();
// cmf_update_current_user($user);
$userId
=
cmf_get_current_user_id
();
if
(
empty
(
$userId
))
{
$config
=
[
...
...
请
注册
或
登录
后发表评论