|
...
|
...
|
@@ -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);
|
...
|
...
|
|