作者 李宇航

合并分支 'lyh-server' 到 'master'

Lyh server



查看合并请求 !2435
@@ -37,6 +37,9 @@ class GeoLinkLogic extends BaseLogic @@ -37,6 +37,9 @@ class GeoLinkLogic extends BaseLogic
37 */ 37 */
38 public function getLinkList($map = [],$page = 1,$row = 20,$order = 'id'){ 38 public function getLinkList($map = [],$page = 1,$row = 20,$order = 'id'){
39 $filed = ['*']; 39 $filed = ['*'];
  40 + if(isset($map['url']) && !empty($map['url'])){
  41 + $map['url'] = ['like','%'.$map['url'].'%'];
  42 + }
40 $lists = $this->model->lists($map,$page,$row,$order,$filed); 43 $lists = $this->model->lists($map,$page,$row,$order,$filed);
41 return $this->success($lists); 44 return $this->success($lists);
42 } 45 }
@@ -64,13 +67,6 @@ class GeoLinkLogic extends BaseLogic @@ -64,13 +67,6 @@ class GeoLinkLogic extends BaseLogic
64 * @time :2025/7/14 16:50 67 * @time :2025/7/14 16:50
65 */ 68 */
66 public function saveLink(){ 69 public function saveLink(){
67 - $data = [  
68 - 'project_id' => 1,  
69 - 'data' => [  
70 - ['da'=>'ce_shi1', 'url'=>'www.baidu.com', 'send_time'=>'2021-07-09 11:12:12'],  
71 - ['da'=>'ce_shi2', 'url'=>'www.baidu1.com', 'send_time'=>'2021-07-10 11:13:12'],  
72 - ],  
73 - ];  
74 try { 70 try {
75 if(!empty($this->param['data'])){ 71 if(!empty($this->param['data'])){
76 $data = []; 72 $data = [];
@@ -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