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