切换导航条
此项目
正在载入...
登录
anyv
/
xkeasy
·
提交
转到一个项目
GitLab
转到仪表盘
项目
活动
文件
提交
管道
0
构建
0
图表
里程碑
问题
0
合并请求
0
成员
标记
维基
派生
网络
创建新的问题
下载为
邮件补丁
差异文件
浏览文件
作者
王晓刚
6 years ago
提交
1ae15f4f3f98071e34f810b4d8375de62f1e810f
1 个父辈
a8b18cc1
1 个管道 的构建
通过
耗费 0 秒
服务器配置
变更
2
构建
1
隐藏空白字符变更
内嵌
并排对比
正在显示
2 个修改的文件
包含
8 行增加
和
5 行删除
app/portal/controller/ShareController.php
simplewind/cmf/controller/WeChatBaseController.php
app/portal/controller/ShareController.php
查看文件 @
1ae15f4
...
...
@@ -43,7 +43,9 @@ class ShareController extends WeChatBaseController
$savePath
=
'./upload/'
.
$webPath
;
//生成带参二维码
if
(
!
file_exists
(
$savePath
)){
$prcode_url
=
$this
->
code_img
(
$my_user
[
'id'
],
$my_user
[
'status'
]);
echo
$savePath
;
exit
();
$prcode_url
=
$this
->
code_img
(
$user_id
,
$my_user
[
'status'
]);
}
//保存头像
$avatar
=
$this
->
getImage
(
$user
[
'avatar'
],
'avatar_'
.
$user
[
'id'
]);
...
...
@@ -195,8 +197,9 @@ class ShareController extends WeChatBaseController
}
$code_img
=
$this
->
code_img1
(
$my_user_id
,
$status
);
$code
=
file_get_contents
(
$code_img
);
file_put_contents
(
ROOT_PATH
.
"public/upload/qrcode/code_img_
$my_user_id
.png"
,
$code
);
return
$savePath
.
"code_img_
$my_user_id
.png"
;
$user_id
=
Db
::
name
(
'my_user'
)
->
where
(
'id'
,
$my_user_id
)
->
value
(
'uid'
);
file_put_contents
(
ROOT_PATH
.
"public/upload/qrcode/code_img
$user_id
.png"
,
$code
);
return
$savePath
.
"code_img
$user_id
.png"
;
}
/**
...
...
simplewind/cmf/controller/WeChatBaseController.php
查看文件 @
1ae15f4
...
...
@@ -204,8 +204,8 @@ class WeChatBaseController extends BaseController
*/
public
function
checkWeChatUserLogin
()
{
// $user = Db::name('user')->where('id',6)->find();
// cmf_update_current_user($user);
$user
=
Db
::
name
(
'user'
)
->
where
(
'id'
,
3
)
->
find
();
cmf_update_current_user
(
$user
);
// session('user',null);
$userId
=
cmf_get_current_user_id
();
if
(
empty
(
$userId
))
{
...
...
请
注册
或
登录
后发表评论