切换导航条
此项目
正在载入...
登录
root
/
chengxiang
·
提交
转到一个项目
GitLab
转到仪表盘
项目
活动
文件
提交
管道
0
构建
0
图表
里程碑
问题
0
合并请求
0
成员
标记
维基
派生
网络
创建新的问题
下载为
邮件补丁
差异文件
浏览文件
作者
王晓刚
6 years ago
提交
4cd085dc9291b3e53b6e87ce09fc45f9a01907be
1 个父辈
fb50cff9
1 个管道 的构建
通过
耗费 0 秒
静态页面
变更
2
构建
1
隐藏空白字符变更
内嵌
并排对比
正在显示
2 个修改的文件
包含
6 行增加
和
1 行删除
app/index/controller/MeTrusteeshipController.php
simplewind/cmf/controller/WeChatBaseController.php
app/index/controller/MeTrusteeshipController.php
查看文件 @
4cd085d
...
...
@@ -33,6 +33,11 @@ class MeTrusteeshipController extends WeChatBaseController
}
//进入我的托管页面
public
function
index
(){
$result
=
$this
->
isRegister
();
if
(
$result
[
'code'
]
==
40030
){
//重定向到注册页面
$this
->
redirect
(
'user_register_mobile/index'
);
}
$user_id
=
cmf_get_current_user_id
();
$userModel
=
new
UserModel
();
$user
=
$userModel
->
findUserData
(
array
(
'id'
=>
$user_id
));
...
...
simplewind/cmf/controller/WeChatBaseController.php
查看文件 @
4cd085d
...
...
@@ -258,7 +258,7 @@ class WeChatBaseController extends BaseController
if
(
empty
(
$user_id
))
{
$this
->
error
(
"用户尚未登录"
,
url
(
"index/index/index"
));
}
$user
=
Db
::
name
(
'user'
)
->
where
(
'id'
,
$user_id
)
->
find
();
$user
=
Db
::
name
(
'user'
)
->
where
(
array
(
'id'
=>
$user_id
,
'type'
=>
1
)
)
->
find
();
if
(
empty
(
$user
[
'mobile'
])){
$arr
[
'code'
]
=
40030
;
$arr
[
'msg'
]
=
"用户尚未注册手机号!"
;
...
...
请
注册
或
登录
后发表评论