...
|
...
|
@@ -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();
|
|
|
|
|
|
}
|
...
|
...
|
|