|
@@ -114,8 +114,8 @@ class BuddhistPagesService extends BaseService
|
|
|
$info['last'] = $info['last']? $info['last'] : ['id'=>0];
|
|
$info['last'] = $info['last']? $info['last'] : ['id'=>0];
|
|
|
$info['next'] = $this->model::where(['bid'=> $bid,'mark'=> 1,'status'=> 1])
|
|
$info['next'] = $this->model::where(['bid'=> $bid,'mark'=> 1,'status'=> 1])
|
|
|
->where('id','>', $id)
|
|
->where('id','>', $id)
|
|
|
- ->orderBy('sort','desc')
|
|
|
|
|
- ->orderBy('create_time','desc')
|
|
|
|
|
|
|
+ ->orderBy('sort','asc')
|
|
|
|
|
+ ->orderBy('create_time','asc')
|
|
|
->first();
|
|
->first();
|
|
|
$info['next'] = $info['next']? $info['next'] : ['id'=>0];
|
|
$info['next'] = $info['next']? $info['next'] : ['id'=>0];
|
|
|
}
|
|
}
|