$student[$key]['indent']=Db::name('indent')->where('uid',$val['uid'])->where("state = 2 or state = 3 or state = 5")->select()->toArray();
$student[$key]['indent']=Db::name('indent')->where('uid',$val['uid'])->where("state = 2 or state = 3 or state = 5")->order("pay_time desc")->select()->toArray();
$name=$val['user_nickname'];
$avatar=$val['avatar'];
$cumulative_money=0;
...
...
@@ -461,10 +462,10 @@ class PersonalcenterController extends WeChatBaseController{
$teacher=Db::name('indent')->where('uid',$uid)->where("pay_time>=".$startime." and pay_time<=".$endtime)->where("state = 2 or state = 3 or state = 5")->select()->toArray();
}else{
$teacher=Db::name('indent')->where('uid',$uid)->where("state = 2 or state = 3 or state = 5")->select()->toArray();
...
...
@@ -592,8 +593,17 @@ class PersonalcenterController extends WeChatBaseController{