切换导航条
此项目
正在载入...
登录
root
/
chengxiang
·
提交
转到一个项目
GitLab
转到仪表盘
项目
活动
文件
提交
管道
0
构建
0
图表
里程碑
问题
0
合并请求
0
成员
标记
维基
派生
网络
创建新的问题
下载为
邮件补丁
差异文件
浏览文件
作者
王晓刚
6 years ago
提交
93ee7b6877ab6c58c7244ba74ca8cef363b9c4ed
1 个父辈
ad31fe98
1 个管道 的构建
通过
耗费 1 秒
授权
变更
2
构建
1
隐藏空白字符变更
内嵌
并排对比
正在显示
2 个修改的文件
包含
18 行增加
和
2 行删除
app/index/controller/IndexController.php
simplewind/cmf/controller/WeChatBaseController.php
app/index/controller/IndexController.php
查看文件 @
93ee7b6
...
...
@@ -24,7 +24,8 @@ class IndexController extends WeChatBaseController
$this
->
ban
();
}
public
function
index
(){
$this
->
success
(
'咳咳'
,
''
);
$result
=
cmf_is_mobile
();
$this
->
success
(
$result
,
''
);
}
}
\ No newline at end of file
...
...
simplewind/cmf/controller/WeChatBaseController.php
查看文件 @
93ee7b6
...
...
@@ -241,5 +241,20 @@ class WeChatBaseController extends BaseController
$this
->
error
(
'兄嘚,你被拉黑啦!'
,
''
);
}
}
/**
* 判断是否注册手机号
*/
public
function
isRegister
(){
$user_id
=
cmf_get_current_user_id
();
if
(
empty
(
$user_id
))
{
$this
->
error
(
"用户尚未登录"
,
url
(
"index/index/index"
));
}
$user
=
Db
::
name
(
'user'
)
->
where
(
'id'
,
$user_id
)
->
find
();
if
(
empty
(
$user
[
'mobile'
])){
$arr
[
'code'
]
=
40000
;
$arr
[
'msg'
]
=
"用户尚未注册手机号!"
;
return
$arr
;
}
}
}
\ No newline at end of file
...
...
请
注册
或
登录
后发表评论