作者 何书鹏

bug修改

@@ -139,22 +139,22 @@ class Rider extends Api @@ -139,22 +139,22 @@ class Rider extends Api
139 ->where('sendtime','>',$todaytime) 139 ->where('sendtime','>',$todaytime)
140 ->count(); 140 ->count();
141 $seven = $model 141 $seven = $model
142 - ->where('fa_rider_order.user_id',$this->auth->id) 142 + ->where('user_id',$this->auth->id)
143 ->where('status','2') 143 ->where('status','2')
144 - ->where('fa_rider_order.status','>',$seventime) 144 + ->where('sendtime','>',$seventime)
145 ->sum('price'); 145 ->sum('price');
146 $sevencount = $model 146 $sevencount = $model
147 - ->where('fa_rider_order.user_id',$this->auth->id) 147 + ->where('user_id',$this->auth->id)
148 ->where('status','2') 148 ->where('status','2')
149 - ->where('fa_rider_order.status','>',$seventime) 149 + ->where('sendtime','>',$seventime)
150 ->count(); 150 ->count();
151 $all = $model 151 $all = $model
152 - ->where('fa_rider_order.user_id',$this->auth->id)  
153 - ->where('fa_rider_order.status','2') 152 + ->where('user_id',$this->auth->id)
  153 + ->where('status','2')
154 ->sum('price'); 154 ->sum('price');
155 $allcount = $model 155 $allcount = $model
156 - ->where('fa_rider_order.user_id',$this->auth->id)  
157 - ->where('fa_rider_order.status','2') 156 + ->where('user_id',$this->auth->id)
  157 + ->where('status','2')
158 ->count(); 158 ->count();
159 $data['today_price'] = $today; 159 $data['today_price'] = $today;
160 $data['seven_price'] = $seven; 160 $data['seven_price'] = $seven;