正在显示
3 个修改的文件
包含
4 行增加
和
3 行删除
@@ -61,7 +61,7 @@ class Addon extends Backend | @@ -61,7 +61,7 @@ class Addon extends Backend | ||
61 | $this->error(__('No Results were found')); | 61 | $this->error(__('No Results were found')); |
62 | } | 62 | } |
63 | if ($this->request->isPost()) { | 63 | if ($this->request->isPost()) { |
64 | - $params = $this->request->post("row/a"); | 64 | + $params = $this->request->post("row/a", [], 'trim'); |
65 | if ($params) { | 65 | if ($params) { |
66 | foreach ($config as $k => &$v) { | 66 | foreach ($config as $k => &$v) { |
67 | if (isset($params[$v['name']])) { | 67 | if (isset($params[$v['name']])) { |
@@ -74,7 +74,7 @@ class Config extends Backend | @@ -74,7 +74,7 @@ class Config extends Backend | ||
74 | { | 74 | { |
75 | if ($this->request->isPost()) { | 75 | if ($this->request->isPost()) { |
76 | $this->token(); | 76 | $this->token(); |
77 | - $params = $this->request->post("row/a"); | 77 | + $params = $this->request->post("row/a", [], 'trim'); |
78 | if ($params) { | 78 | if ($params) { |
79 | foreach ($params as $k => &$v) { | 79 | foreach ($params as $k => &$v) { |
80 | $v = is_array($v) ? implode(',', $v) : $v; | 80 | $v = is_array($v) ? implode(',', $v) : $v; |
@@ -113,7 +113,7 @@ class Config extends Backend | @@ -113,7 +113,7 @@ class Config extends Backend | ||
113 | { | 113 | { |
114 | if ($this->request->isPost()) { | 114 | if ($this->request->isPost()) { |
115 | $this->token(); | 115 | $this->token(); |
116 | - $row = $this->request->post("row/a"); | 116 | + $row = $this->request->post("row/a", [], 'trim'); |
117 | if ($row) { | 117 | if ($row) { |
118 | $configList = []; | 118 | $configList = []; |
119 | foreach ($this->model->all() as $v) { | 119 | foreach ($this->model->all() as $v) { |
@@ -267,6 +267,7 @@ class Backend extends Controller | @@ -267,6 +267,7 @@ class Backend extends Controller | ||
267 | if ($relationSearch) { | 267 | if ($relationSearch) { |
268 | if (!empty($this->model)) { | 268 | if (!empty($this->model)) { |
269 | $name = \think\Loader::parseName(basename(str_replace('\\', '/', get_class($this->model)))); | 269 | $name = \think\Loader::parseName(basename(str_replace('\\', '/', get_class($this->model)))); |
270 | + $name = $this->model->getTable(); | ||
270 | $tableName = $name . '.'; | 271 | $tableName = $name . '.'; |
271 | } | 272 | } |
272 | $sortArr = explode(',', $sort); | 273 | $sortArr = explode(',', $sort); |
-
请 注册 或 登录 后发表评论