|
...
|
...
|
@@ -144,6 +144,8 @@ class KeywordLogic extends BaseLogic |
|
|
|
if($num > 1000){
|
|
|
|
$this->fail('最大数量不能超过1000');
|
|
|
|
}
|
|
|
|
DB::connection('custom_mysql')->beginTransaction();
|
|
|
|
try {
|
|
|
|
foreach ($this->param['title'] as $k=>$v) {
|
|
|
|
$data = [];
|
|
|
|
if (empty($v)) {
|
|
...
|
...
|
@@ -168,6 +170,11 @@ class KeywordLogic extends BaseLogic |
|
|
|
}
|
|
|
|
$this->model->edit(['route' => $route], ['id' => $ids]);
|
|
|
|
}
|
|
|
|
DB::connection('custom_mysql')->commit();
|
|
|
|
}catch (\Exception $e){
|
|
|
|
DB::connection('custom_mysql')->rollBack();
|
|
|
|
}
|
|
|
|
|
|
|
|
return $this->success();
|
|
|
|
}
|
|
|
|
|
...
|
...
|
|