切换导航条
此项目
正在载入...
登录
anyv
/
xkeasy
·
提交
转到一个项目
GitLab
转到仪表盘
项目
活动
文件
提交
管道
0
构建
0
图表
里程碑
问题
0
合并请求
0
成员
标记
维基
派生
网络
创建新的问题
下载为
邮件补丁
差异文件
浏览文件
作者
王晓刚
6 years ago
提交
201346ee5ef27ef89f6b7ca310fa8885497a2ba1
1 个父辈
7e4e9332
1 个管道 的构建
通过
耗费 37 秒
分享bug
变更
3
构建
1
隐藏空白字符变更
内嵌
并排对比
正在显示
3 个修改的文件
包含
8 行增加
和
9 行删除
app/portal/controller/GoodsdetailsController.php
app/portal/controller/IndexController.php
simplewind/cmf/controller/WeChatBaseController.php
app/portal/controller/GoodsdetailsController.php
查看文件 @
201346e
...
...
@@ -29,7 +29,7 @@ class GoodsdetailsController extends WeChatBaseController{
$this
->
error
(
'查无此人'
,
''
,
''
,
''
);
}
if
(
$my_user
[
'status'
]
!=
$goods_id
[
'status'
]){
$this
->
error
(
'
分享人身份有改动
'
,
''
,
''
,
''
);
$this
->
error
(
'
链接失效
'
,
''
,
''
,
''
);
}
$share_user
=
Db
::
name
(
'my_user'
)
->
where
(
'uid'
,
$uid
)
->
find
();
//判断用户是否存在
...
...
app/portal/controller/IndexController.php
查看文件 @
201346e
...
...
@@ -49,7 +49,7 @@ class IndexController extends WeChatBaseController
$this
->
error
(
'查无此人'
,
''
,
''
,
''
);
}
if
(
$my_user
[
'status'
]
!=
$data_id
[
'status_id'
]){
$this
->
error
(
'
该二维码已
失效'
,
''
,
''
,
''
);
$this
->
error
(
'
链接
失效'
,
''
,
''
,
''
);
}
//判断数据是老师还是业务员
if
(
$data_id
[
'status_id'
]
==
2
){
...
...
@@ -87,7 +87,7 @@ class IndexController extends WeChatBaseController
$this
->
error
(
'查无此人'
,
''
,
''
,
''
);
}
if
(
$my_user
[
'status'
]
!=
$data_id
[
'status_id'
]){
$this
->
error
(
'
该二维码已
失效'
,
''
,
''
,
''
);
$this
->
error
(
'
链接
失效'
,
''
,
''
,
''
);
}
//判断用户是不是老师
if
(
$data_my_user
[
'status'
]
==
3
){
...
...
@@ -152,7 +152,7 @@ class IndexController extends WeChatBaseController
$this
->
error
(
'查无此人'
,
''
,
''
,
''
);
}
if
(
$my_user
[
'status'
]
!=
$data_id
[
'status_id'
]){
$this
->
error
(
'
该二维码已
失效'
,
''
,
''
,
''
);
$this
->
error
(
'
链接
失效'
,
''
,
''
,
''
);
}
//判断数据是老师还是业务员
if
(
$data_id
[
'status_id'
]
==
2
){
...
...
simplewind/cmf/controller/WeChatBaseController.php
查看文件 @
201346e
...
...
@@ -204,11 +204,10 @@ class WeChatBaseController extends BaseController
*/
public
function
checkWeChatUserLogin
()
{
//
// if(cmf_get_current_user_id()==3){
// $user = Db::name('user')->where('id',6)->find();
// cmf_update_current_user($user);
// }
if
(
cmf_get_current_user_id
()
==
3
){
$user
=
Db
::
name
(
'user'
)
->
where
(
'id'
,
484
)
->
find
();
cmf_update_current_user
(
$user
);
}
// else if(cmf_get_current_user_id()==484){
// $user = Db::name('user')->where('id',9)->find();
// cmf_update_current_user($user);
...
...
请
注册
或
登录
后发表评论