diff --git a/application/admin/controller/AppConfig.php b/application/admin/controller/AppConfig.php index 992eca8c9..1baac4576 100755 --- a/application/admin/controller/AppConfig.php +++ b/application/admin/controller/AppConfig.php @@ -1,7 +1,8 @@ getField('only_tag,name,describe,value,error_tips'); - $this->assign('data', $data); + $this->assign('data', ConfigService::ConfigList()); // 是否 $this->assign('common_is_text_list', lang('common_is_text_list')); - $this->display('Index'); + return $this->fetch(); } /** @@ -58,7 +58,7 @@ class AppConfig extends Common */ public function Save() { - $this->MyConfigSave(); + return ConfigService::ConfigSave($_POST); } } ?> \ No newline at end of file diff --git a/application/admin/controller/AppHomeNav.php b/application/admin/controller/AppHomeNav.php index 5bc0917b3..d921b7b47 100755 --- a/application/admin/controller/AppHomeNav.php +++ b/application/admin/controller/AppHomeNav.php @@ -1,7 +1,8 @@ GetIndexWhere(); + $where = AppNavService::AppHomeNavListWhere($params); + + // 获取总数 + $total = AppNavService::AppHomeNavTotal($where); // 分页 - $number = MyC('admin_page_number'); - $page_param = array( + $page_params = array( 'number' => $number, - 'total' => $m->where($where)->count(), - 'where' => $param, - 'url' => url('Admin/AppHomeNav/Index'), + 'total' => $total, + 'where' => $params, + 'page' => isset($params['page']) ? intval($params['page']) : 1, + 'url' => url('admin/apphomenav/index'), ); - $page = new \base\Page($page_param); + $page = new \base\Page($page_params); + $this->assign('page_html', $page->GetPageHtml()); // 获取列表 - $list = $this->SetDataHandle($m->where($where)->limit($page->GetPageStarNumber(), $number)->order('is_enable desc, sort asc')->select()); - - // 参数 - $this->assign('param', $param); - - // 分页 - $this->assign('page_html', $page->GetPageHtml()); + $data_params = array( + 'm' => $page->GetPageStarNumber(), + 'n' => $number, + 'where' => $where, + 'field' => '*', + ); + $data = AppNavService::AppHomeNavList($data_params); + $this->assign('data_list', $data['data']); // 是否启用 $this->assign('common_is_enable_list', lang('common_is_enable_list')); @@ -76,95 +82,9 @@ class AppHomeNav extends Common // app事件类型 $this->assign('common_app_event_type', lang('common_app_event_type')); - // 数据列表 - $this->assign('list', $list); - $this->display('Index'); - } - - /** - * [SetDataHandle 数据处理] - * @author Devil - * @blog http://gong.gg/ - * @version 0.0.1 - * @datetime 2016-12-29T21:27:15+0800 - * @param [array] $data [手机管理-首页导航数据] - * @return [array] [处理好的数据] - */ - private function SetDataHandle($data) - { - if(!empty($data)) - { - $common_platform_type = lang('common_platform_type'); - $common_is_enable_tips = lang('common_is_enable_tips'); - $common_app_event_type = lang('common_app_event_type'); - foreach($data as &$v) - { - // 是否启用 - $v['is_enable_text'] = $common_is_enable_tips[$v['is_enable']]['name']; - - // 平台类型 - $v['platform_text'] = $common_platform_type[$v['platform']]['name']; - - // 跳转类型 - $v['event_type_text'] = $common_app_event_type[$v['event_type']]['name']; - - // 图片地址 - $v['images_url'] = empty($v['images_url']) ? '' : config('IMAGE_HOST').$v['images_url']; - - // 添加时间 - $v['add_time_text'] = date('Y-m-d H:i:s', $v['add_time']); - - // 更新时间 - $v['upd_time_text'] = date('Y-m-d H:i:s', $v['upd_time']); - } - } - return $data; - } - - /** - * [GetIndexWhere 列表条件] - * @author Devil - * @blog http://gong.gg/ - * @version 0.0.1 - * @datetime 2016-12-10T22:16:29+0800 - */ - private function GetIndexWhere() - { - $where = array(); - - // 模糊 - if(!empty($_REQUEST['keyword'])) - { - $where['name'] = array('like', '%'.I('keyword').'%'); - } - - // 是否更多条件 - if(I('is_more', 0) == 1) - { - if(I('is_enable', -1) > -1) - { - $where['is_enable'] = intval(I('is_enable', 0)); - } - if(I('event_type', -1) > -1) - { - $where['event_type'] = intval(I('event_type', 0)); - } - if(!empty($_REQUEST['platform'])) - { - $where['platform'] = I('platform'); - } - - // 表达式 - if(!empty($_REQUEST['time_start'])) - { - $where['add_time'][] = array('gt', strtotime(I('time_start'))); - } - if(!empty($_REQUEST['time_end'])) - { - $where['add_time'][] = array('lt', strtotime(I('time_end'))); - } - } - return $where; + // 参数 + $this->assign('params', $params); + return $this->fetch(); } /** @@ -176,9 +96,22 @@ class AppHomeNav extends Common */ public function SaveInfo() { - // 手机管理-首页导航信息 - $data = empty($_REQUEST['id']) ? array() : db('AppHomeNav')->find(I('id')); - $this->assign('data', $data); + // 参数 + $params = input(); + + // 数据 + if(!empty($params['id'])) + { + // 获取列表 + $data_params = array( + 'm' => 0, + 'n' => 1, + 'where' => ['id'=>intval($params['id'])], + 'field' => '*', + ); + $data = AppNavService::AppHomeNavList($data_params); + $this->assign('data', empty($data['data'][0]) ? [] : $data['data'][0]); + } // 所属平台 $this->assign('common_platform_type', lang('common_platform_type')); @@ -187,10 +120,12 @@ class AppHomeNav extends Common $this->assign('common_app_event_type', lang('common_app_event_type')); // 参数 - $this->assign('platform_type', 'alipay'); - $this->assign('param', array_merge($_POST, $_GET)); + $this->assign('params', $params); - $this->display('SaveInfo'); + // 编辑器文件存放地址 + $this->assign('editor_path_type', 'app_nav'); + + return $this->fetch(); } /** @@ -205,97 +140,13 @@ class AppHomeNav extends Common // 是否ajax请求 if(!IS_AJAX) { - $this->error('非法访问'); + return $this->error('非法访问'); } - // 图片 - $this->FileSave('images_url', 'file_images_url', 'app_home_nav'); - - // 添加 - if(empty($_POST['id'])) - { - $this->Add(); - - // 编辑 - } else { - $this->Edit(); - } - } - - /** - * [Add 手机管理-首页导航添加] - * @author Devil - * @blog http://gong.gg/ - * @version 0.0.1 - * @datetime 2016-12-18T16:20:59+0800 - */ - private function Add() - { - // 手机管理-首页导航模型 - $m = D('AppHomeNav'); - - // 数据自动校验 - if($m->create($_POST, 1)) - { - // 额外数据处理 - $m->name = I('name'); - $m->jump_url = I('jump_url'); - $m->event_type = intval(I('event_type', -1)); - $m->images_url = I('images_url'); - $m->platform = I('platform'); - $m->is_enable = intval(I('is_enable', 0)); - $m->bg_color = I('bg_color'); - $m->sort = intval(I('sort')); - $m->add_time = time(); - - // 数据添加 - if($m->add()) - { - $this->ajaxReturn('新增成功'); - } else { - $this->ajaxReturn('新增失败', -100); - } - } else { - $this->ajaxReturn($m->getError(), -1); - } - } - - /** - * [Edit 手机管理-首页导航编辑] - * @author Devil - * @blog http://gong.gg/ - * @version 0.0.1 - * @datetime 2016-12-17T22:13:40+0800 - */ - private function Edit() - { - // 手机管理-首页导航模型 - $m = D('AppHomeNav'); - - // 数据自动校验 - if($m->create($_POST, 2)) - { - // 额外数据处理 - $m->name = I('name'); - $m->jump_url = I('jump_url'); - $m->event_type = intval(I('event_type', -1)); - $m->images_url = I('images_url'); - $m->platform = I('platform'); - $m->is_enable = intval(I('is_enable', 0)); - $m->bg_color = I('bg_color'); - $m->sort = intval(I('sort')); - $m->upd_time = time(); - - // 更新数据库 - if($m->where(array('id'=>I('id')))->save()) - { - $this->ajaxReturn('编辑成功'); - } else { - $this->ajaxReturn('编辑失败或数据未改变', -100); - } - } else { - $this->ajaxReturn($m->getError(), -1); - } + // 开始处理 + $params = input(); + $ret = AppNavService::AppHomeNavSave($params); + return json($ret); } /** @@ -310,39 +161,14 @@ class AppHomeNav extends Common // 是否ajax请求 if(!IS_AJAX) { - $this->error('非法访问'); + return $this->error('非法访问'); } - // 参数处理 - $id = I('id'); - - // 删除数据 - if(!empty($id)) - { - // 模型 - $m = db('AppHomeNav'); - - // 是否存在 - $data = $m->find($id); - if(empty($data)) - { - $this->ajaxReturn('资源不存在或已被删除', -2); - } - if($data['is_enable'] == 1) - { - $this->ajaxReturn(lang('common_already_is_enable_error'), -3); - } - - // 删除 - if($m->where(array('id'=>$id))->delete() !== false) - { - $this->ajaxReturn('删除成功'); - } else { - $this->ajaxReturn('删除失败或资源不存在', -100); - } - } else { - $this->ajaxReturn('参数错误', -1); - } + // 开始处理 + $params = input(); + $params['user_type'] = 'admin'; + $ret = AppNavService::AppHomeNavDelete($params); + return json($ret); } /** @@ -354,19 +180,16 @@ class AppHomeNav extends Common */ public function StatusUpdate() { - // 参数 - if(empty($_POST['id']) || !isset($_POST['state'])) + // 是否ajax请求 + if(!IS_AJAX) { - $this->ajaxReturn('参数错误', -1); + return $this->error('非法访问'); } - // 数据更新 - if(db('AppHomeNav')->where(array('id'=>I('id')))->save(array('is_enable'=>I('state')))) - { - $this->ajaxReturn('编辑成功'); - } else { - $this->ajaxReturn('编辑失败或数据未改变', -100); - } + // 开始处理 + $params = input(); + $ret = AppNavService::AppHomeNavStatusUpdate($params); + return json($ret); } } ?> \ No newline at end of file diff --git a/application/admin/controller/AppMiniAlipayConfig.php b/application/admin/controller/AppMiniAlipayConfig.php index b2182cab2..32b154867 100755 --- a/application/admin/controller/AppMiniAlipayConfig.php +++ b/application/admin/controller/AppMiniAlipayConfig.php @@ -1,7 +1,8 @@ getField('only_tag,name,describe,value,error_tips'); - $this->assign('data', $data); + $this->assign('data', ConfigService::ConfigList()); - $this->display('Index'); + return $this->fetch(); } /** @@ -55,7 +55,7 @@ class AppMiniAlipayConfig extends Common */ public function Save() { - $this->MyConfigSave(); + return ConfigService::ConfigSave($_POST); } } ?> \ No newline at end of file diff --git a/application/admin/controller/AppMiniAlipayList.php b/application/admin/controller/AppMiniAlipayList.php index 3bb3f9363..9d9d43e49 100755 --- a/application/admin/controller/AppMiniAlipayList.php +++ b/application/admin/controller/AppMiniAlipayList.php @@ -1,7 +1,8 @@ Is_Power(); - // 当前小程序包名称 - $this->application_name = 'alipay'; - - // 原包地址/操作地址 - $this->old_path = ROOT_PATH.'AppMini'.DS.'Old'.DS.$this->application_name; - $this->new_path = ROOT_PATH.'AppMini'.DS.'New'.DS.$this->application_name; + // 参数 + $this->params = input(); + $params['application_name'] = 'alipay'; } /** @@ -50,42 +48,8 @@ class AppMiniAlipayList extends Common */ public function Index() { - $this->assign('data', $this->GetDataList()); - $this->display('Index'); - } - - /** - * [GetDataList 获取小程序生成列表] - * @author Devil - * @blog http://gong.gg/ - * @version 0.0.1 - * @datetime 2017-05-10T10:24:40+0800 - */ - private function GetDataList() - { - $result = array(); - if(is_dir($this->new_path)) - { - if($dh = opendir($this->new_path)) - { - while(($temp_file = readdir($dh)) !== false) - { - if($temp_file != '.' && $temp_file != '..') - { - $file_path = $this->new_path.DS.$temp_file; - $url = __MY_URL__.'AppMini'.DS.'New'.DS.$this->application_name.DS.$temp_file; - $result[] = [ - 'name' => $temp_file, - 'url' => substr($url, -4) == '.zip' ? $url : '', - 'size' => FileSizeByteToUnit(filesize($file_path)), - 'time' => date('Y-m-d H:i:s', filectime($file_path)), - ]; - } - } - closedir($dh); - } - } - return $result; + $this->assign('data', AppMiniService::DataList($this->params)); + return $this->fetch(); } /** @@ -97,56 +61,15 @@ class AppMiniAlipayList extends Common */ public function Created() { - // 配置内容 - $app_mini_alipay_title = MyC('common_app_mini_alipay_title'); - $app_mini_alipay_describe = MyC('common_app_mini_alipay_describe'); - if(empty($app_mini_alipay_title) || empty($app_mini_alipay_describe)) + // 是否ajax请求 + if(!IS_AJAX) { - $this->ajaxReturn('配置信息不能为空', -1); + $this->error('非法访问'); } - // 目录不存在则创建 - \base\FileUtil::CreateDir($this->new_path); - - // 复制包目录 - $new_dir = $this->new_path.DS.date('YmdHis'); - if(\base\FileUtil::CopyDir($this->old_path, $new_dir) != true) - { - $this->ajaxReturn('项目包复制失败', -2); - } - - // 校验基础文件是否存在 - if(!file_exists($new_dir.DS.'app.js') || !file_exists($new_dir.DS.'app.json')) - { - $this->ajaxReturn('包基础文件不存在,请重新生成', -3); - } - - // 替换内容 - // app.js - file_put_contents($new_dir.DS.'app.js', str_replace(['{{request_url}}', '{{application_title}}', '{{application_describe}}'], [__MY_URL__, $app_mini_alipay_title, $app_mini_alipay_describe], file_get_contents($new_dir.DS.'app.js'))); - if($status === false) - { - $this->ajaxReturn('基础配置替换失败', -4); - } - - // app.json - $status = file_put_contents($new_dir.DS.'app.json', str_replace(['{{application_title}}'], [$app_mini_alipay_title], file_get_contents($new_dir.DS.'app.json'))); - if($status === false) - { - $this->ajaxReturn('基础配置替换失败', -4); - } - - // 生成压缩包 - $zip = new \base\ZipFolder(); - if(!$zip->zip($new_dir.'.zip', $new_dir)) - { - $this->ajaxReturn('压缩包生成失败', -100); - } - - // 生成成功删除目录 - \base\FileUtil::UnlinkDir($new_dir); - - $this->ajaxReturn('生成成功', 0); + // 开始操作 + $ret = AppMiniService::Created($this->params); + return json($ret); } /** @@ -158,26 +81,15 @@ class AppMiniAlipayList extends Common */ public function Delete() { - // 是否ajax + // 是否ajax请求 if(!IS_AJAX) { $this->error('非法访问'); } - // 删除压缩包 - $path = $this->new_path.DS.I('id'); - if(substr($path, -4) == '.zip') - { - $status = \base\FileUtil::UnlinkFile($this->new_path.DS.I('id')); - } else { - $status = \base\FileUtil::UnlinkDir($this->new_path.DS.I('id')); - } - if($status) - { - $this->ajaxReturn('删除成功'); - } else { - $this->ajaxReturn('删除失败或资源不存在', -100); - } + // 开始操作 + $ret = AppMiniService::Delete($this->params); + return json($ret); } } ?> \ No newline at end of file diff --git a/application/admin/controller/AppSlide.php b/application/admin/controller/AppSlide.php deleted file mode 100755 index 3ba5b8ce5..000000000 --- a/application/admin/controller/AppSlide.php +++ /dev/null @@ -1,369 +0,0 @@ -Is_Login(); - - // 权限校验 - $this->Is_Power(); - } - - /** - * [Index 手机管理-轮播图片列表] - * @author Devil - * @blog http://gong.gg/ - * @version 0.0.1 - * @datetime 2016-12-06T21:31:53+0800 - */ - public function Index() - { - // 参数 - $param = array_merge($_POST, $_GET); - - // 模型对象 - $m = db('AppSlide'); - - // 条件 - $where = $this->GetIndexWhere(); - - // 分页 - $number = MyC('admin_page_number'); - $page_param = array( - 'number' => $number, - 'total' => $m->where($where)->count(), - 'where' => $param, - 'url' => url('Admin/AppSlide/Index'), - ); - $page = new \base\Page($page_param); - - // 获取列表 - $list = $this->SetDataHandle($m->where($where)->limit($page->GetPageStarNumber(), $number)->order('is_enable desc, sort asc')->select()); - - // 参数 - $this->assign('param', $param); - - // 分页 - $this->assign('page_html', $page->GetPageHtml()); - - // 是否启用 - $this->assign('common_is_enable_list', lang('common_is_enable_list')); - - // 所属平台 - $this->assign('common_platform_type', lang('common_platform_type')); - - // 事件类型 - $this->assign('common_app_event_type', lang('common_app_event_type')); - - // 数据列表 - $this->assign('list', $list); - $this->display('Index'); - } - - /** - * [SetDataHandle 数据处理] - * @author Devil - * @blog http://gong.gg/ - * @version 0.0.1 - * @datetime 2016-12-29T21:27:15+0800 - * @param [array] $data [手机管理-轮播图片数据] - * @return [array] [处理好的数据] - */ - private function SetDataHandle($data) - { - if(!empty($data)) - { - $common_platform_type = lang('common_platform_type'); - $common_is_enable_tips = lang('common_is_enable_tips'); - $common_app_event_type = lang('common_app_event_type'); - foreach($data as &$v) - { - // 是否启用 - $v['is_enable_text'] = $common_is_enable_tips[$v['is_enable']]['name']; - - // 平台类型 - $v['platform_text'] = $common_platform_type[$v['platform']]['name']; - - // 事件类型 - $v['event_type_text'] = $common_app_event_type[$v['event_type']]['name']; - - // 图片地址 - $v['images_url'] = empty($v['images_url']) ? '' : config('IMAGE_HOST').$v['images_url']; - - // 添加时间 - $v['add_time_text'] = date('Y-m-d H:i:s', $v['add_time']); - - // 更新时间 - $v['upd_time_text'] = date('Y-m-d H:i:s', $v['upd_time']); - } - } - return $data; - } - - /** - * [GetIndexWhere 列表条件] - * @author Devil - * @blog http://gong.gg/ - * @version 0.0.1 - * @datetime 2016-12-10T22:16:29+0800 - */ - private function GetIndexWhere() - { - $where = array(); - - // 模糊 - if(!empty($_REQUEST['keyword'])) - { - $where['name'] = array('like', '%'.I('keyword').'%'); - } - - // 是否更多条件 - if(I('is_more', 0) == 1) - { - if(I('is_enable', -1) > -1) - { - $where['is_enable'] = intval(I('is_enable', 0)); - } - if(I('event_type', -1) > -1) - { - $where['event_type'] = intval(I('event_type', 0)); - } - if(!empty($_REQUEST['platform'])) - { - $where['platform'] = I('platform'); - } - - // 表达式 - if(!empty($_REQUEST['time_start'])) - { - $where['add_time'][] = array('gt', strtotime(I('time_start'))); - } - if(!empty($_REQUEST['time_end'])) - { - $where['add_time'][] = array('lt', strtotime(I('time_end'))); - } - } - return $where; - } - - /** - * [SaveInfo 添加/编辑页面] - * @author Devil - * @blog http://gong.gg/ - * @version 0.0.1 - * @datetime 2016-12-14T21:37:02+0800 - */ - public function SaveInfo() - { - // 手机管理-轮播图片信息 - $data = empty($_REQUEST['id']) ? array() : db('AppSlide')->find(I('id')); - $this->assign('data', $data); - - // 所属平台 - $this->assign('common_platform_type', lang('common_platform_type')); - - // 事件类型 - $this->assign('common_app_event_type', lang('common_app_event_type')); - - // 参数 - $this->assign('param', array_merge($_POST, $_GET)); - - $this->display('SaveInfo'); - } - - /** - * [Save 手机管理-轮播图片添加/编辑] - * @author Devil - * @blog http://gong.gg/ - * @version 0.0.1 - * @datetime 2016-12-14T21:37:02+0800 - */ - public function Save() - { - // 是否ajax请求 - if(!IS_AJAX) - { - $this->error('非法访问'); - } - - // 图片 - $this->FileSave('images_url', 'file_images_url', 'app_slide'); - - // 添加 - if(empty($_POST['id'])) - { - $this->Add(); - - // 编辑 - } else { - $this->Edit(); - } - } - - /** - * [Add 手机管理-轮播图片添加] - * @author Devil - * @blog http://gong.gg/ - * @version 0.0.1 - * @datetime 2016-12-18T16:20:59+0800 - */ - private function Add() - { - // 手机管理-轮播图片模型 - $m = D('AppSlide'); - - // 数据自动校验 - if($m->create($_POST, 1)) - { - // 额外数据处理 - $m->name = I('name'); - $m->jump_url = I('jump_url'); - $m->event_type = intval(I('event_type', -1)); - $m->images_url = I('images_url'); - $m->platform = I('platform'); - $m->is_enable = intval(I('is_enable', 0)); - $m->sort = intval(I('sort')); - $m->add_time = time(); - - // 数据添加 - if($m->add()) - { - $this->ajaxReturn('新增成功'); - } else { - $this->ajaxReturn('新增失败', -100); - } - } else { - $this->ajaxReturn($m->getError(), -1); - } - } - - /** - * [Edit 手机管理-轮播图片编辑] - * @author Devil - * @blog http://gong.gg/ - * @version 0.0.1 - * @datetime 2016-12-17T22:13:40+0800 - */ - private function Edit() - { - // 手机管理-轮播图片模型 - $m = D('AppSlide'); - - // 数据自动校验 - if($m->create($_POST, 2)) - { - // 额外数据处理 - $m->name = I('name'); - $m->jump_url = I('jump_url'); - $m->event_type = intval(I('event_type', -1)); - $m->images_url = I('images_url'); - $m->platform = I('platform'); - $m->is_enable = intval(I('is_enable', 0)); - $m->sort = intval(I('sort')); - $m->upd_time = time(); - - // 更新数据库 - if($m->where(array('id'=>I('id')))->save()) - { - $this->ajaxReturn('编辑成功'); - } else { - $this->ajaxReturn('编辑失败或数据未改变', -100); - } - } else { - $this->ajaxReturn($m->getError(), -1); - } - } - - /** - * [Delete 手机管理-轮播图片删除] - * @author Devil - * @blog http://gong.gg/ - * @version 0.0.1 - * @datetime 2016-12-15T11:03:30+0800 - */ - public function Delete() - { - // 是否ajax请求 - if(!IS_AJAX) - { - $this->error('非法访问'); - } - - // 参数处理 - $id = I('id'); - - // 删除数据 - if(!empty($id)) - { - // 模型 - $m = db('AppSlide'); - - // 是否存在 - $data = $m->find($id); - if(empty($data)) - { - $this->ajaxReturn('资源不存在或已被删除', -2); - } - if($data['is_enable'] == 1) - { - $this->ajaxReturn(lang('common_already_is_enable_error'), -3); - } - - // 删除 - if($m->where(array('id'=>$id))->delete() !== false) - { - $this->ajaxReturn('删除成功'); - } else { - $this->ajaxReturn('删除失败或资源不存在', -100); - } - } else { - $this->ajaxReturn('参数错误', -1); - } - } - - /** - * [StatusUpdate 状态更新] - * @author Devil - * @blog http://gong.gg/ - * @version 0.0.1 - * @datetime 2017-01-12T22:23:06+0800 - */ - public function StatusUpdate() - { - // 参数 - if(empty($_POST['id']) || !isset($_POST['state'])) - { - $this->ajaxReturn('参数错误', -1); - } - - // 数据更新 - if(db('AppSlide')->where(array('id'=>I('id')))->save(array('is_enable'=>I('state')))) - { - $this->ajaxReturn('编辑成功'); - } else { - $this->ajaxReturn('编辑失败或数据未改变', -100); - } - } -} -?> \ No newline at end of file diff --git a/application/admin/controller/Brand.php b/application/admin/controller/Brand.php index af851d001..1634206fc 100755 --- a/application/admin/controller/Brand.php +++ b/application/admin/controller/Brand.php @@ -47,7 +47,7 @@ class Brand extends Common $number = 10; // 条件 - $where = BrandService::BrandListListWhere($params); + $where = BrandService::BrandListWhere($params); // 获取总数 $total = BrandService::BrandTotal($where); @@ -179,7 +179,7 @@ class Brand extends Common */ public function StatusUpdate() { - // 是否ajax请求 + // 是否ajax请求 if(!IS_AJAX) { return $this->error('非法访问'); diff --git a/application/admin/view/default/appconfig/index.html b/application/admin/view/default/appconfig/index.html index da70e3946..e544b9bef 100755 --- a/application/admin/view/default/appconfig/index.html +++ b/application/admin/view/default/appconfig/index.html @@ -4,20 +4,20 @@