切换导航条
此项目
正在载入...
登录
anyv
/
xkeasy
·
提交
转到一个项目
GitLab
转到仪表盘
项目
活动
文件
提交
管道
0
构建
0
图表
里程碑
问题
0
合并请求
0
成员
标记
维基
派生
网络
创建新的问题
下载为
邮件补丁
差异文件
浏览文件
作者
anyv
6 years ago
提交
052c7ec00c908d2cf516c99974a3d43834ee7610
1 个父辈
3900bd65
6
隐藏空白字符变更
内嵌
并排对比
正在显示
1 个修改的文件
包含
2 行增加
和
2 行删除
app/portal/controller/PersonalcenterController.php
app/portal/controller/PersonalcenterController.php
查看文件 @
052c7ec
...
...
@@ -369,7 +369,7 @@ class PersonalcenterController extends WeChatBaseController{
$this
->
assign
(
'money_ratio'
,
$money_ratio
);
$this
->
assign
(
'balance'
,
$balance
[
'balance'
]);
$this
->
assign
(
'cumulative_money'
,
$cumulative_money
);
$money_expend
=
Db
::
name
(
'money_expend'
)
->
where
(
'uid
'
,
$uid
)
->
select
();
$money_expend
=
Db
::
name
(
'money_expend'
)
->
where
(
'uid
='
.
$uid
.
" and state=0"
)
->
select
();
$money
=
0
;
foreach
(
$money_expend
as
$key
=>
$val
){
$money
+=
$val
[
'money'
];
...
...
@@ -388,7 +388,7 @@ class PersonalcenterController extends WeChatBaseController{
$_POST
[
'create_time'
]
=
time
();
$_POST
[
'state'
]
=
0
;
$data
=
Db
::
name
(
'money_expend'
)
->
insert
(
$_POST
);
$money_expend
=
Db
::
name
(
'money_expend'
)
->
where
(
'uid
'
,
$_POST
[
'uid'
]
)
->
select
();
$money_expend
=
Db
::
name
(
'money_expend'
)
->
where
(
'uid
='
.
$_POST
[
'uid'
]
.
" and state=0"
)
->
select
();
$money
=
0
;
foreach
(
$money_expend
as
$key
=>
$val
){
$money
+=
$val
[
'money'
];
...
...
请
注册
或
登录
后发表评论