切换导航条
此项目
正在载入...
登录
anyv
/
xkeasy
·
提交
转到一个项目
GitLab
转到仪表盘
项目
活动
文件
提交
管道
0
构建
0
图表
里程碑
问题
0
合并请求
0
成员
标记
维基
派生
网络
创建新的问题
下载为
邮件补丁
差异文件
浏览文件
作者
王晓刚
6 years ago
提交
33addb8f4114cd061d0f87c86b1bb7c749bd9e57
1 个父辈
0c352ffb
1 个管道 的构建
通过
耗费 20 秒
扫描的分享码状态是否有效
变更
2
构建
1
隐藏空白字符变更
内嵌
并排对比
正在显示
2 个修改的文件
包含
10 行增加
和
2 行删除
app/portal/controller/IndexController.php
simplewind/cmf/controller/WeChatBaseController.php
app/portal/controller/IndexController.php
查看文件 @
33addb8
...
...
@@ -42,6 +42,14 @@ class IndexController extends WeChatBaseController
$data_id
=
$this
->
request
->
param
();
//判断跳转链接是否存在数据 存在则绑定关系
if
(
!
empty
(
$data_id
)){
//判断上级权限是否存在
$my_user
=
Db
::
name
(
'my_user'
)
->
where
(
'id'
,
$data_id
[
'my_user_id'
])
->
find
();
if
(
empty
(
$my_user
)){
$this
->
error
(
'查无此人'
,
''
,
''
,
''
);
}
if
(
$my_user
[
'status'
]
!=
$data_id
[
'status_id'
]){
$this
->
error
(
'该二维码已失效'
,
''
,
''
,
''
);
}
//判断数据是老师还是业务员
if
(
$data_id
[
'status_id'
]
==
2
){
//业务员分享 更改用户身份为老师
...
...
simplewind/cmf/controller/WeChatBaseController.php
查看文件 @
33addb8
...
...
@@ -204,8 +204,8 @@ class WeChatBaseController extends BaseController
*/
public
function
checkWeChatUserLogin
()
{
/*$user = Db::name('user')->where('id',45)->find();
cmf_update_current_user($user);*/
// $user = Db::name('user')->where('id',303)->find();
// cmf_update_current_user($user);
// session('user',null);
$userId
=
cmf_get_current_user_id
();
if
(
empty
(
$userId
))
{
...
...
请
注册
或
登录
后发表评论