目录结构更新,增加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

@@ -37,7 +37,7 @@ class Seo extends Admin {
}
public function add() {
if (IS_POST) {
if ($this->request->isPost()) {
$data = $this->request->post();
$result = $this->seo->save($data);
if ($result) {
@@ -56,7 +56,7 @@ class Seo extends Admin {
}
public function edit($id = null) {
if (IS_POST) {
if ($this->request->isPost()) {
$data = $this->request->post();
$result = $this->seo->save($data, array('id' => $data['id']));
if (false !== $result) {
@@ -103,7 +103,7 @@ class Seo extends Admin {
}
public function addrewrite() {
if (IS_POST) {
if ($this->request->isPost()) {
$result = model('Rewrite')->change();
if (false != $result) {
return $this->success("添加成功!", url('admin/seo/rewrite'));
@@ -121,7 +121,7 @@ class Seo extends Admin {
}
public function editrewrite() {
if (IS_POST) {
if ($this->request->isPost()) {
$result = model('Rewrite')->change();
if (false != $result) {
return $this->success("更新成功!", url('admin/seo/rewrite'));