1、修复后台参数获取的bug
2、上传图片类型增加jpeg
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user