作者 lyh

变更数据

... ... @@ -85,10 +85,10 @@ class GeoController extends BaseController
$geoWritingsModel = new GeoWritings();
$info = $geoWritingsModel->read(['uniqid' => $token]);
if ($info === false){
return $this->error('非法请求');
return $this->response('非法请求',Code::SYSTEM_ERROR);
}
if ($info['status'] == GeoWritings::STATUS_FINISH){
return $this->error('当前文章已确认,不可再次确认');
return $this->response('当前文章已确认,不可再次确认',Code::SYSTEM_ERROR);
}
$this->param['confirm_ip'] = $this->request->ip();
$this->param['confirm_at'] = date('Y-m-d H:i:s');
... ... @@ -108,7 +108,7 @@ class GeoController extends BaseController
$token = trim($this->param['token']);
$data = GeoConfirm::where(['uniqid' => $token])->first();
if (empty($data)){
return $this->error('确认链接已重置,请查看最新推送链接!');
return $this->response('确认链接已重置,请查看最新推送链接!',Code::SYSTEM_ERROR);
}
$content = explode("\n", $data->content);
$confirm = explode("\n", $data->confirm);
... ...
... ... @@ -25,9 +25,6 @@ class LinkDataController extends BaseController
* @time :2025/3/14 16:33
*/
public function lists(GeoLink $linkData){
if(!isset($this->map['type']) || empty($this->map['type'])){
$this->map['type'] = $linkData::TYPE_LINK;
}
$this->map['project_id'] = $this->user['project_id'];
$lists = $linkData->lists($this->map,$this->page,$this->row);
$this->response('success',Code::SUCCESS,$lists);
... ...