目录结构更新,增加composer支持

This commit is contained in:
2018-01-14 09:40:04 +08:00
parent 3818619504
commit ae46a73172
945 changed files with 421 additions and 210179 deletions

View File

@@ -42,7 +42,7 @@ class Ad extends Admin {
*/
public function add() {
$place = model('AdPlace');
if (IS_POST) {
if ($this->request->isPost()) {
$result = $place->change();
if (false !== false) {
return $this->success("添加成功!");
@@ -61,7 +61,7 @@ class Ad extends Admin {
public function edit($id = null) {
$place = model('AdPlace');
if (IS_POST) {
if ($this->request->isPost()) {
$result = $place->change();
if ($result) {
return $this->success("修改成功!", url('admin/ad/index'));
@@ -115,7 +115,7 @@ class Ad extends Admin {
public function addad($id) {
$ad = model('ad');
if (IS_POST) {
if ($this->request->isPost()) {
$result = $ad->change();
if ($result) {
return $this->success("添加成功!", url('admin/ad/lists', array('id' => $this->param['place_id'])));
@@ -136,7 +136,7 @@ class Ad extends Admin {
public function editad($id = null) {
$ad = model('ad');
if (IS_POST) {
if ($this->request->isPost()) {
$result = $ad->change();
if ($result) {
return $this->success("修改成功!", url('admin/ad/lists', array('id' => $this->param['place_id'])));