|
...
|
...
|
@@ -9,6 +9,7 @@ use App\Http\Logic\Bside\Product\KeywordLogic; |
|
|
|
use App\Http\Requests\Bside\Product\KeywordRequest;
|
|
|
|
use App\Models\Com\NoticeLog;
|
|
|
|
use App\Models\Product\Keyword;
|
|
|
|
use App\Models\Product\KeywordPage;
|
|
|
|
use App\Models\Product\KeywordRelated;
|
|
|
|
use App\Models\Product\Product;
|
|
|
|
use App\Models\RouteMap\RouteMap;
|
|
...
|
...
|
@@ -242,6 +243,20 @@ class KeywordController extends BaseController |
|
|
|
* @time :2024/7/2 10:14
|
|
|
|
*/
|
|
|
|
public function batchUpdateKeyword(){
|
|
|
|
$noticeLogModel = new NoticeLog();
|
|
|
|
$this->request->validate([
|
|
|
|
'text'=>'required|array',
|
|
|
|
'update_object'=>'required|array',
|
|
|
|
'update_method'=>'required'
|
|
|
|
],[
|
|
|
|
'text.required' => '文件内容不能为空',
|
|
|
|
'update_object.required' => '更新对象不为空',
|
|
|
|
'update_object.array' => '更新对象为数组',
|
|
|
|
'update_method.required' => '请求方式不为空'
|
|
|
|
]);
|
|
|
|
$keywordPageModel = new KeywordPage();
|
|
|
|
$this->param['text'] = json_encode($this->param['text']);
|
|
|
|
$this->param['update_object'] = json_encode($this->param['update_object']);
|
|
|
|
$id = $keywordPageModel->addReturnId($this->param);
|
|
|
|
$this->response('success',Code::SUCCESS,['id'=>$id]);
|
|
|
|
}
|
|
|
|
} |
...
|
...
|
|