1、修复几处bug
2、上传配置修改
This commit is contained in:
@@ -69,7 +69,7 @@ class Content extends Admin {
|
||||
*/
|
||||
public function add() {
|
||||
if ($this->request->isPost()) {
|
||||
$result = $this->model->save($this->param);
|
||||
$result = $this->model->save($this->request->param());
|
||||
if ($result) {
|
||||
//记录行为
|
||||
action_log('add_content', 'content', $result, session('auth_user.uid'));
|
||||
|
||||
@@ -167,13 +167,13 @@ class Form extends Admin {
|
||||
return $this->fetch();
|
||||
}
|
||||
|
||||
public function addattr(\think\Request $request){
|
||||
$form_id = isset($this->param['form_id']) ? $this->param['form_id'] : '';
|
||||
public function addattr(){
|
||||
$form_id = $this->request->param('form_id', '');
|
||||
if (!$form_id) {
|
||||
return $this->error('非法操作!');
|
||||
}
|
||||
if ($this->request->isPost()) {
|
||||
$data = $request->post();
|
||||
$data = $this->request->post();
|
||||
$result = $this->Fattr->save($data);
|
||||
if (false !== $result) {
|
||||
return $this->success('添加成功!', url('admin/form/attr?form_id='.$form_id));
|
||||
|
||||
Reference in New Issue
Block a user