作者 lyh

超过120小时未处理的工单

... ... @@ -72,7 +72,7 @@ class GeoQuestionResController extends BaseController
'project_id.required' => 'project_id不能为空',
'type.required' => '品牌类型不能为空'
]);
$data = $this->logic->getResultList($this->map,$this->page,$this->row);
$data = $this->logic->getResultList($this->map,$this->page,$this->row,$this->order,$this->param['sort'] ?? 'desc');
$this->response('success',Code::SUCCESS,$data);
}
... ...
... ... @@ -46,7 +46,7 @@ class GeoQuestionResLogic extends BaseLogic
* @method :post
* @time :2025/7/4 9:48
*/
public function getResultList($map = [],$page = 1,$row = 20){
public function getResultList($map = [],$page = 1,$row = 20,$order = 'created_at',$sort){
$map['project_id'] = $this->user['project_id'];
$filed = ['id','project_id','question_id','platform','is_match','question','en_question','keywords','url','label','cosine','created_at','updated_at'];
if(!empty($map['created_at'])){
... ... @@ -64,7 +64,7 @@ class GeoQuestionResLogic extends BaseLogic
// $q->whereRaw('JSON_LENGTH(keywords) > 0')
// ->orWhereRaw('JSON_LENGTH(url) > 0');
// });
$data = $query->orderByRaw('CHAR_LENGTH(question) ASC')->paginate($row, $filed, 'page', $page);;
$data = $query->orderByRaw('CHAR_LENGTH(question) ASC')->orderBy($order,$sort)->paginate($row, $filed, 'page', $page);;
return $this->success($data);
}
... ...
... ... @@ -178,6 +178,38 @@ class Project extends Base
}
/**
* @remark :项目进度
* @name :projectProgress
* @author :lyh
* @method :post
* @time :2025/9/3 14:47
*/
public static function projectProgress($search){
$data = [
'build' => [
1 => '建立微信群',
2 => '对接资料',
3 => '确定风格',
4 => '资料上传',
5 => '页面调整',
6 => '关键词确认',
7 => '正式网站上线'
],
'optimize' => [
1 => '开始推广',
2 => 'SEO设置',
3 => '排名达标',
4 => '剩余服务时常'
]
];
if(!empty($search)){
return $data[$search];
}
return $data;
}
/**
* @remark :新增搜索
* @name :searchParam
* @author :lyh
... ...
... ... @@ -42,7 +42,7 @@ class GeoService
'platform' => $platform,
'security_check' => true
];
$data = http_post($url,json_encode($message,true),$header);
$data = http_post($url,json_encode($message,true),$header,true,180);
return $data;
}
... ...