作者 王智

修改

... ... @@ -889,10 +889,14 @@ class User extends Api
$OldList[$k]['Level'] = $v['level'];
$OldList[$k]['Createtime'] = date('Y-m-d', $v['createtime']);
$CountNum = Db::name('money')->where('touser_id', $v['user_id'])->select();
foreach ($CountNum as $key => $value) {
$Count[] = $value['money'];
if (!empty($CountNum)) {
foreach ($CountNum as $key => $value) {
$Count[] = $value['money'];
}
$OldList[$k]['CountMoney'] = array_sum($Count);
} else {
$OldList[$k]['CountMoney'] = 0;
}
$OldList[$k]['CountMoney'] = array_sum($Count);
}
if ($params['status'] == 1) {
$List = $this->MyTreeAsc($OldList);
... ...