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

@@ -53,7 +53,7 @@ class Channel extends Admin {
* @author 麦当苗儿 <zuojiazi@vip.qq.com>
*/
public function add() {
if (IS_POST) {
if ($this->request->isPost()) {
$Channel = model('Channel');
$data = $this->request->post();
if ($data) {
@@ -89,7 +89,7 @@ class Channel extends Admin {
* @author 麦当苗儿 <zuojiazi@vip.qq.com>
*/
public function edit($id = 0) {
if (IS_POST) {
if ($this->request->isPost()) {
$Channel = model('Channel');
$data = $this->request->post();
if ($data) {
@@ -155,7 +155,7 @@ class Channel extends Admin {
* @author huajie <banhuajie@163.com>
*/
public function sort() {
if (IS_GET) {
if ($this->request->isGet()) {
$ids = input('ids');
$pid = input('pid');
//获取排序的数据
@@ -172,7 +172,7 @@ class Channel extends Admin {
$this->assign('list', $list);
$this->setMeta('导航排序');
return $this->fetch();
} elseif (IS_POST) {
} elseif ($this->request->isPost()) {
$ids = input('post.ids');
$ids = explode(',', $ids);
foreach ($ids as $key => $value) {