|
...
|
...
|
@@ -88,11 +88,11 @@ class GeoLogic extends BaseLogic |
|
|
|
$this->param['url'] = json_encode($this->param['url'] ?? [],true);
|
|
|
|
$this->param['keywords'] = json_encode($this->param['keywords'] ?? [],true);
|
|
|
|
//执行时间设置为今天
|
|
|
|
$this->param['next_time'] = date('Y-m-d');
|
|
|
|
if(isset($this->param['id']) && !empty($this->param['id'])){
|
|
|
|
$id = $this->param['id'];
|
|
|
|
$this->model->edit($this->param,['id'=>$id]);
|
|
|
|
}else{
|
|
|
|
$this->param['next_time'] = date('Y-m-d');
|
|
|
|
$id = $this->model->addReturnId($this->param);
|
|
|
|
}
|
|
|
|
return $this->success(['id'=>$id]);
|
...
|
...
|
|