|
...
|
...
|
@@ -25,7 +25,7 @@ class GeoController extends BaseController |
|
|
|
* @param Request $request
|
|
|
|
* @return false|string
|
|
|
|
*/
|
|
|
|
public function getWritingsList(Request $request)
|
|
|
|
public function getWritingsList()
|
|
|
|
{
|
|
|
|
try {
|
|
|
|
$token = trim($this->param['token']);
|
|
...
|
...
|
@@ -35,7 +35,6 @@ class GeoController extends BaseController |
|
|
|
} catch (\Exception $e) {
|
|
|
|
return $this->error('非法请求');
|
|
|
|
}
|
|
|
|
|
|
|
|
$project = Project::select('title', 'version')->where(['project_id' => $this->param['project_id']])->first();
|
|
|
|
$list = GeoWritings::select(['title', 'status', 'uniqid', 'confirm_at'])->where(['project_id' => $project_id, 'is_del' => GeoWritings::IS_DEL_FALSE])->get();
|
|
|
|
$result = [
|
|
...
|
...
|
@@ -100,8 +99,9 @@ class GeoController extends BaseController |
|
|
|
{
|
|
|
|
$token = trim($request->input('token'));
|
|
|
|
$data = GeoConfirm::where(['uniqid' => $token])->first();
|
|
|
|
if (empty($data))
|
|
|
|
if (empty($data)){
|
|
|
|
return $this->error('当前授权已失效');
|
|
|
|
}
|
|
|
|
$content = explode("\n", $data->content);
|
|
|
|
$confirm = explode("\n", $data->confirm);
|
|
|
|
$type = $data->type;
|
...
|
...
|
|