mirror of
https://github.com/crmeb/CRMEB.git
synced 2026-10-30 06:20:50 +00:00
修改添加
This commit is contained in:
parent
a45ab355c3
commit
2c3055b6fd
@ -97,7 +97,7 @@ class SystemRoute extends AuthController
|
||||
*/
|
||||
public function save($id = 0)
|
||||
{
|
||||
$data = $this->request->getMore([
|
||||
$data = $this->request->postMore([
|
||||
['cate_id', 0],
|
||||
['name', ''],
|
||||
['path', ''],
|
||||
@ -126,6 +126,7 @@ class SystemRoute extends AuthController
|
||||
if ($id) {
|
||||
$this->services->update($id, $data);
|
||||
} else {
|
||||
$data['add_time'] = date('Y-m-d H:i:s');
|
||||
$this->services->save($data);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user