bug修复

This commit is contained in:
2018-04-05 12:29:02 +08:00
parent 76ccce0d45
commit 009bf0b259
8 changed files with 85 additions and 24 deletions

View File

@@ -122,7 +122,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());
}
@@ -143,7 +143,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->param('place_id'))));
} else {
return $this->error($ad->getError());
}