|
@@ -343,7 +343,7 @@ class CoflController extends Controller
|
|
|
foreach ($users as $item) {
|
|
|
$uid_list[] =$item->id;
|
|
|
}
|
|
|
- $year_order = YearOrder::whereIn('uid',$uid_list)->where('bid')->orderBy('end_time','desc')->first();
|
|
|
+ $year_order = YearOrder::whereIn('uid',$uid_list)->orderBy('end_time','desc')->first();
|
|
|
if($year_order) {
|
|
|
foreach ($users as $item) {
|
|
|
if($item->id == $year_order->uid) {
|