切换导航条
此项目
正在载入...
登录
anyv
/
xkeasy
·
提交
转到一个项目
GitLab
转到仪表盘
项目
活动
文件
提交
管道
0
构建
0
图表
里程碑
问题
0
合并请求
0
成员
标记
维基
派生
网络
创建新的问题
下载为
邮件补丁
差异文件
浏览文件
作者
anyv
6 years ago
提交
8c34adb29856e8c77afd51de96a5ab4f9c9b371e
1 个父辈
83f80985
提现修改
隐藏空白字符变更
内嵌
并排对比
正在显示
2 个修改的文件
包含
4 行增加
和
3 行删除
app/portal/controller/PersonalcenterController.php
simplewind/cmf/controller/WeChatBaseController.php
app/portal/controller/PersonalcenterController.php
查看文件 @
8c34adb
...
...
@@ -427,10 +427,11 @@ class PersonalcenterController extends WeChatBaseController{
$user_balance
=
Db
::
name
(
'my_user'
)
->
where
(
'uid'
,
$_POST
[
'uid'
])
->
find
();
$user_money_expend
=
Db
::
name
(
'money_expend'
)
->
where
(
"uid="
.
$_POST
[
'uid'
]
.
" and state =0"
)
->
select
();
$money_expend
=
$_POST
[
'money'
];
$my_money_expend
=
0
;
foreach
(
$user_money_expend
as
$key
=>
$val
){
$money_expend
+=
$val
[
'money'
];
$m
y_m
oney_expend
+=
$val
[
'money'
];
}
$tax_money
=
$money_expend
/
(
1
-
0.006
);
$tax_money
=
$m
y_m
oney_expend
/
(
1
-
0.006
);
$user_balance
[
'balance'
]
=
$user_balance
[
'balance'
]
-
$user_balance
[
'balance'
]
*
0.006
-
$tax_money
;
if
(
$money_expend
>
$user_balance
[
'balance'
]
){
return
false
;
...
...
simplewind/cmf/controller/WeChatBaseController.php
查看文件 @
8c34adb
...
...
@@ -204,7 +204,7 @@ class WeChatBaseController extends BaseController
*/
public
function
checkWeChatUserLogin
()
{
/*$user = Db::name('user')->where('id',
27
)->find();
/*$user = Db::name('user')->where('id',
45
)->find();
cmf_update_current_user($user);*/
// session('user',null);
$userId
=
cmf_get_current_user_id
();
...
...
请
注册
或
登录
后发表评论