切换导航条
此项目
正在载入...
登录
anyv
/
xkeasy
·
提交
转到一个项目
GitLab
转到仪表盘
项目
活动
文件
提交
管道
0
构建
0
图表
里程碑
问题
0
合并请求
0
成员
标记
维基
派生
网络
创建新的问题
下载为
邮件补丁
差异文件
浏览文件
作者
anyv
6 years ago
提交
0382d53c3aa90308c9cb6746f6ee52c7d0effbf9
1 个父辈
5105b5c6
5
隐藏空白字符变更
内嵌
并排对比
正在显示
3 个修改的文件
包含
11 行增加
和
4 行删除
app/portal/controller/PersonalcenterController.php
public/themes/simpleboot3/portal/personalcenter/income_record.html
simplewind/cmf/controller/WeChatBaseController.php
app/portal/controller/PersonalcenterController.php
查看文件 @
0382d53
...
...
@@ -529,10 +529,17 @@ class PersonalcenterController extends WeChatBaseController{
$tea_money_income
=
Db
::
name
(
'money_income'
)
->
where
(
"indent_id ="
.
$val
[
'id'
]
.
" and uid = "
.
$uid
)
->
select
()
->
toArray
();
$money
=
0
;
foreach
(
$tea_money_income
as
$key2
=>
$val2
){
$money
+=
$val2
[
'money'
];
}
$teacher_data
[
$key
][
'total_money'
]
=
$money
;
$teacher_data
[
$key
][
'indent_type'
]
=
$val
[
'indent_type'
];
$teacher_data
[
$key
][
'create_time'
]
=
$val
[
'create_time'
];
$my_res
[]
=
$teacher_data
[
$key
];
}
if
(
empty
(
$my_res
)){
$my_res
=
null
;
}
$this
->
assign
(
'my_res'
,
$my_res
);
return
$this
->
fetch
();
}
...
...
public/themes/simpleboot3/portal/personalcenter/income_record.html
查看文件 @
0382d53
...
...
@@ -38,7 +38,7 @@
<div
class=
"recordNum"
>
佣金+{$vo.total_money}
</div>
</li>
</volist>
<volist
name=
"
"
id=
"
"
>
<volist
name=
"
my_res"
id=
"vo
"
>
<li>
<div
class=
"recordImg"
>
<img
src=
"{$vo.avatar}"
alt=
""
>
...
...
simplewind/cmf/controller/WeChatBaseController.php
查看文件 @
0382d53
...
...
@@ -204,7 +204,7 @@ class WeChatBaseController extends BaseController
*/
public
function
checkWeChatUserLogin
()
{
/*$user = Db::name('user')->where('id',
5
)->find();
/*$user = Db::name('user')->where('id',
4
)->find();
cmf_update_current_user($user);*/
$userId
=
cmf_get_current_user_id
();
if
(
empty
(
$userId
))
{
...
...
请
注册
或
登录
后发表评论