...
|
...
|
@@ -382,8 +382,13 @@ 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 = 0;
|
|
|
foreach ($money_expend as $key => $val){
|
|
|
$money += $val['money'];
|
|
|
}
|
|
|
if($data){
|
|
|
return true;
|
|
|
return $money;
|
|
|
}else{
|
|
|
return false;
|
|
|
}
|
...
|
...
|
|