作者 lyh

gxgeo设置搜索历史记录

@@ -137,7 +137,7 @@ class GeoQuestionResLogic extends BaseLogic @@ -137,7 +137,7 @@ class GeoQuestionResLogic extends BaseLogic
137 * @time :2025/7/21 16:36 137 * @time :2025/7/21 16:36
138 */ 138 */
139 public function getSearchDate(){ 139 public function getSearchDate(){
140 - $dates = $this->model->select(DB::raw('DATE(created_at) as date_only'))->distinct()->pluck('date_only'); 140 + $dates = $this->model->where('project_id',$this->user['project_id'])->select(DB::raw('DATE(created_at) as date_only'))->distinct()->pluck('date_only');
141 return $this->success($dates); 141 return $this->success($dates);
142 } 142 }
143 143