1、修复后台参数获取的bug

2、上传图片类型增加jpeg
This commit is contained in:
2018-03-30 11:32:35 +08:00
parent 9651fe14c4
commit 37f4436298
5 changed files with 11 additions and 11 deletions

View File

@@ -118,7 +118,7 @@ class Ad extends Admin {
if ($this->request->isPost()) {
$result = $ad->change();
if ($result) {
return $this->success("添加成功!", url('admin/ad/lists', array('id' => $this->param['place_id'])));
return $this->success("添加成功!", url('admin/ad/lists', array('id' => $this->request->param('place_id'))));
} else {
return $this->error($ad->getError());
}
@@ -139,7 +139,7 @@ class Ad extends Admin {
if ($this->request->isPost()) {
$result = $ad->change();
if ($result) {
return $this->success("修改成功!", url('admin/ad/lists', array('id' => $this->param['place_id'])));
return $this->success("修改成功!", url('admin/ad/lists', array('id' => $this->reqeust->param('place_id'))));
} else {
return $this->error($ad->getError());
}