123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899 |
- <?php
- namespace app\admin\controller;
- use think\facade\View;
- use app\BaseController;
- /**
-
- * 控制器
- */
- class AdminControl extends BaseController
- {
- /**
- * 管理员资料 name id group
- */
- protected $admin_info;
- protected $permission;
- public function initialize()
- {
- $config_list = rkcache('config', true);
- config($config_list, 'ds_config');
- View::assign('ick_kci', checkSecurity());
- if (request()->controller() != 'Login') {
- $this->admin_info = $this->systemLogin();
- if ($this->admin_info['admin_id'] != 1) {
- // 验证权限
- $this->checkPermission();
- }
- $this->setMenuList();
- }
- }
- /**
- * 取得当前管理员信息
- *
- * @param
- * @return 数组类型的返回结果
- */
- protected final function getAdminInfo()
- {
- return $this->admin_info;
- }
- /**
- * 系统后台登录验证
- *
- * @param
- * @return array 数组类型的返回结果
- */
- protected final function systemLogin()
- {
- $admin_info = array(
- 'admin_id' => session('admin_id'),
- 'admin_name' => session('admin_name'),
- 'admin_gid' => session('admin_gid'),
- 'admin_is_super' => session('admin_is_super'),
- );
- if (empty($admin_info['admin_id']) || empty($admin_info['admin_name']) || !isset($admin_info['admin_gid']) || !isset($admin_info['admin_is_super'])) {
- session(null);
- $this->redirect('admin/Login/index');
- }
- return $admin_info;
- }
- public function setMenuList()
- {
- $menu_list = $this->menuList();
- $menu_list = $this->parseMenu($menu_list);
- View::assign('menu_list', $menu_list);
- }
- /**
- * 验证当前管理员权限是否可以进行操作
- *
- * @param string $link_nav
- * @return
- */
- protected final function checkPermission($link_nav = null)
- {
- if ($this->admin_info['admin_is_super'] == 1) return true;
- $controller = request()->controller();
- $action = request()->action();
- if (empty($this->permission)) {
- $admin_model = model('admin');
- $gadmin = $admin_model->getOneGadmin(array('gid' => $this->admin_info['admin_gid']));
- $permission = ds_decrypt($gadmin['glimits'], MD5_KEY . md5($gadmin['gname']));
- $this->permission = $permission = explode('|', $permission);
- } else {
- $permission = $this->permission;
- }
- //显示隐藏小导航,成功与否都直接返回
- if (is_array($link_nav)) {
- if (!in_array("{$link_nav['controller']}.{$link_nav['action']}", $permission) && !in_array($link_nav['controller'], $permission)) {
- return false;
- } else {
- return true;
- }
- }
- //以下几项不需要验证
- $tmp = array('Index', 'Dashboard', 'Login');
- if (in_array($controller, $tmp)) {
- return true;
- }
- if (in_array($controller, $permission) || in_array("$controller.$action", $permission)) {
- return true;
- } else {
- $extlimit = array('ajax', 'export_step1');
- if (in_array($action, $extlimit) && (in_array($controller, $permission) || strpos(serialize($permission), '"' . $controller . '.'))) {
- return true;
- }
- //带前缀的都通过
- foreach ($permission as $v) {
- if (!empty($v) && strpos("$controller.$action", $v . '_') !== false) {
- return true;
- break;
- }
- }
- }
- if ($this->admin_info['admin_name'] != 'dsmall') {
- $this->error(lang('ds_assign_right'), 'Dashboard/welcome');
- } else if (request()->isPost() || preg_match('/del/', request()->action())) {
- $this->error(lang('ds_assign_right'));
- }
- }
- /**
- * 过滤掉无权查看的菜单
- *
- * @param array $menu
- * @return array
- */
- private final function parseMenu($menu = array())
- {
- if ($this->admin_info['admin_is_super'] == 1) {
- return $menu;
- }
- foreach ($menu as $k => $v) {
- foreach ($v['children'] as $ck => $cv) {
- $tmp = explode(',', $cv['args']);
- //以下几项不需要验证
- $except = array('Index', 'Dashboard', 'Login');
- if (in_array($tmp[1], $except))
- continue;
- if (!in_array($tmp[1], array_values($this->permission)) && !in_array($tmp[1] . '.' . $tmp[0], array_values($this->permission))) {
- if ($this->admin_info['admin_name'] != 'dsmall') {
- unset($menu[$k]['children'][$ck]);
- }
- }
- }
- if (empty($menu[$k]['children'])) {
- unset($menu[$k]);
- unset($menu[$k]['children']);
- }
- }
- return $menu;
- }
- /**
- * 记录系统日志
- *
- * @param $lang 日志语言包
- * @param $state 1成功0失败null不出现成功失败提示
- * @param $admin_name
- * @param $admin_id
- */
- protected final function log($lang = '', $state = 1, $admin_name = '', $admin_id = 0)
- {
- if ($admin_name == '') {
- $admin_name = session('admin_name');
- $admin_id = session('admin_id');
- }
- $data = array();
- if (is_null($state)) {
- $state = null;
- } else {
- $state = $state ? '' : lang('ds_fail');
- }
- $data['adminlog_content'] = $lang . $state;
- $data['adminlog_time'] = TIMESTAMP;
- $data['admin_name'] = $admin_name;
- $data['admin_id'] = $admin_id;
- $data['adminlog_ip'] = request()->ip();
- $data['adminlog_url'] = request()->controller() . '&' . request()->action();
- $adminlog_model = model('adminlog');
- return $adminlog_model->addAdminlog($data);
- }
- /**
- * 添加到任务队列
- *
- * @param array $goods_array
- * @param boolean $ifdel 是否删除以原记录
- */
- protected function addcron($data = array(), $ifdel = false)
- {
- $cron_model = model('cron');
- if (isset($data[0])) { // 批量插入
- $where = array();
- foreach ($data as $k => $v) {
- // 删除原纪录条件
- if ($ifdel) {
- $where[] = '(cron_type = "' . $data['cron_type'] . '" and cron_value = "' . $data['cron_value'] . '")';
- }
- }
- // 删除原纪录
- if ($ifdel) {
- $cron_model->delCron(implode(',', $where));
- }
- $cron_model->addCronAll($data);
- } else { // 单条插入
- // 删除原纪录
- if ($ifdel) {
- $cron_model->delCron(array('cron_type' => $data['cron_type'], 'cron_value' => $data['cron_value']));
- }
- $cron_model->addCron($data);
- }
- }
- /**
- * 当前选中的栏目
- */
- protected function setAdminCurItem($curitem = '')
- {
- View::assign('admin_item', $this->getAdminItemList());
- View::assign('curitem', $curitem);
- }
- /**
- * 获取卖家栏目列表,针对控制器下的栏目
- */
- protected function getAdminItemList()
- {
- return array();
- }
- /*
- * 侧边栏列表
- */
- function menuList()
- {
- return array(
- 'dashboard' => array(
- 'name' => 'dashboard',
- 'text' => lang('ds_dashboard'),
- 'show' => TRUE,
- 'children' => array(
- 'welcome' => array(
- 'ico' => "",
- 'text' => lang('ds_welcome'),
- 'args' => 'welcome,Dashboard,dashboard',
- ),
- /*
- 'aboutus' => array(
- 'text' => lang('ds_aboutus'),
- 'args' => 'aboutus,dashboard,dashboard',
- ),
- */
- 'config' => array(
- 'ico' => '',
- 'text' => lang('ds_base'),
- 'args' => 'base,Config,dashboard',
- ),
- 'member' => array(
- 'ico' => '',
- 'text' => lang('ds_member_manage'),
- 'args' => 'member,Member,dashboard',
- ),
- ),
- ),
- 'setting' => array(
- 'name' => 'setting',
- 'text' => lang('ds_setting'),
- 'show' => TRUE,
- 'children' => array(
- 'config' => array(
- 'ico' => '',
- 'text' => lang('ds_base'),
- 'args' => 'base,Config,setting',
- ),
- 'account' => array(
- 'ico' => '',
- 'text' => lang('ds_account'),
- 'args' => 'qq,Account,setting',
- ),
- 'upload_set' => array(
- 'ico' => '',
- 'text' => lang('ds_upload_set'),
- 'args' => 'default_thumb,Upload,setting',
- ),
- 'seo' => array(
- 'ico' => '',
- 'text' => lang('ds_seo_set'),
- 'args' => 'index,Seo,setting',
- ),
- 'message' => array(
- 'ico' => '',
- 'text' => lang('ds_message'),
- 'args' => 'email,Message,setting',
- ),
- 'payment' => array(
- 'ico' => '',
- 'text' => lang('ds_payment'),
- 'args' => 'index,Payment,setting',
- ),
- 'admin' => array(
- 'ico' => '',
- 'text' => lang('ds_admin'),
- 'args' => 'admin,Admin,setting',
- ),
- 'express' => array(
- 'ico' => '',
- 'text' => lang('ds_express'),
- 'args' => 'index,Express,setting',
- ),
- 'Region' => array(
- 'ico' => '',
- 'text' => lang('ds_region'),
- 'args' => 'index,Region,setting',
- ),
- 'db' => array(
- 'ico' => '',
- 'text' => lang('ds_db'),
- 'args' => 'db,Database,setting',
- ),
- 'admin_log' => array(
- 'ico' => '',
- 'text' => lang('ds_adminlog'),
- 'args' => 'loglist,Adminlog,setting',
- ),
- ),
- ),
- 'member' => array(
- 'name' => 'member',
- 'text' => lang('ds_member'),
- 'show' => TRUE,
- 'children' => array(
- 'member' => array(
- 'ico' => '',
- 'text' => lang('ds_member_manage'),
- 'args' => 'member,Member,member',
- ),
- 'member_auth' => array(
- 'ico' => '',
- 'text' => lang('member_auth'),
- 'args' => 'index,MemberAuth,member',
- ),
- 'membergrade' => array(
- 'ico' => '',
- 'text' => lang('ds_membergrade'),
- 'args' => 'index,Membergrade,member',
- ),
- 'exppoints' => array(
- 'ico' => '',
- 'text' => lang('ds_exppoints'),
- 'args' => 'index,Exppoints,member',
- ),
- 'notice' => array(
- 'ico' => '',
- 'text' => lang('ds_notice'),
- 'args' => 'index,Notice,member',
- ),
- 'points' => array(
- 'ico' => '',
- 'text' => lang('ds_points'),
- 'args' => 'index,Points,member',
- ),
- 'predeposit' => array(
- 'ico' => '',
- 'text' => lang('ds_predeposit'),
- 'args' => 'pdrecharge_list,Predeposit,member',
- ),
- 'snsmalbum' => array(
- 'ico' => '',
- 'text' => lang('ds_snsmalbum'),
- 'args' => 'index,Snsmalbum,member',
- ),
- 'snsmember' => array(
- 'ico' => '',
- 'text' => lang('ds_snsmember'),
- 'args' => 'index,Snsmember,member',
- ),
- 'instant_message' => array(
- 'ico' => '',
- 'text' => lang('instant_message'),
- 'args' => 'index,InstantMessage,member',
- ),
- ),
- ),
- 'goods' => array(
- 'name' => 'goods',
- 'text' => lang('ds_goods'),
- 'show' => TRUE,
- 'children' => array(
- 'goodsclass' => array(
- 'ico' => '',
- 'text' => lang('ds_goodsclass'),
- 'args' => 'goods_class,Goodsclass,goods',
- ),
- 'Brand' => array(
- 'ico' => '',
- 'text' => lang('ds_brand_manage'),
- 'args' => 'index,Brand,goods',
- ),
- 'Goods' => array(
- 'ico' => '',
- 'text' => lang('ds_goods_manage'),
- 'args' => 'index,Goods,goods',
- ),
- 'Type' => array(
- 'ico' => '',
- 'text' => lang('ds_type'),
- 'args' => 'index,Type,goods',
- ),
- 'Spec' => array(
- 'ico' => '',
- 'text' => lang('ds_spec'),
- 'args' => 'index,Spec,goods',
- ),
- 'album' => array(
- 'ico' => '',
- 'text' => lang('ds_album'),
- 'args' => 'index,Goodsalbum,goods',
- ),
- 'video' => array(
- 'ico' => '',
- 'text' => lang('ds_video'),
- 'args' => 'index,Goodsvideo,goods',
- ),
- 'Arrivalnotice' => array(
- 'ico' => '',
- 'text' => lang('ds_arrivalnotice'),
- 'args' => 'index,Arrivalnotice,goods',
- ),
- ),
- ),
- 'store' => array(
- 'name' => 'store',
- 'text' => lang('ds_store'),
- 'show' => TRUE,
- 'children' => array(
- 'Store' => array(
- 'ico' => '',
- 'text' => lang('ds_store_manage'),
- 'args' => 'store,Store,store',
- ),
- 'Storemoney' => array(
- 'ico' => '',
- 'text' => lang('ds_store_money'),
- 'args' => 'index,Storemoney,store',
- ),
- 'Storedeposit' => array(
- 'ico' => '',
- 'text' => lang('ds_store_deposit'),
- 'args' => 'index,Storedeposit,store',
- ),
- 'Storegrade' => array(
- 'ico' => '',
- 'text' => lang('ds_storegrade'),
- 'args' => 'index,Storegrade,store',
- ),
- 'Storeclass' => array(
- 'ico' => '',
- 'text' => lang('ds_storeclass'),
- 'args' => 'store_class,Storeclass,store',
- ),
- // 'Chain' => array(
- // 'ico'=>'',
- // 'text' => lang('ds_chain'),
- // 'args' => 'index,Chain,store',
- // ),
- 'Storesnstrace' => array(
- 'ico' => '',
- 'text' => lang('ds_storesnstrace'),
- 'args' => 'index,Storesnstrace,store',
- ),
- 'Storehelp' => array(
- 'ico' => '',
- 'text' => lang('ds_Storehelp'),
- 'args' => 'index,Storehelp,store',
- ),
- 'Storejoin' => array(
- 'ico' => '',
- 'text' => lang('ds_storejoin'),
- 'args' => 'index,Storejoin,store',
- ),
- 'Ownshop' => array(
- 'ico' => '',
- 'text' => lang('ds_ownshop'),
- 'args' => 'index,Ownshop,store',
- ),
- ),
- ),
- 'trade' => array(
- 'name' => 'trade',
- 'text' => lang('ds_trade'),
- 'show' => TRUE,
- 'children' => array(
- 'order' => array(
- 'ico' => '',
- 'text' => lang('ds_order'),
- 'args' => 'index,Order,trade',
- ),
- 'vrorder' => array(
- 'ico' => '',
- 'text' => lang('ds_vrorder'),
- 'args' => 'index,Vrorder,trade',
- ),
- 'refund' => array(
- 'ico' => '',
- 'text' => lang('ds_refund'),
- 'args' => 'refund_manage,Refund,trade',
- ),
- 'return' => array(
- 'ico' => '',
- 'text' => lang('ds_return'),
- 'args' => 'return_manage,Returnmanage,trade',
- ),
- 'vrrefund' => array(
- 'ico' => '',
- 'text' => lang('ds_vrrefund'),
- 'args' => 'refund_manage,Vrrefund,trade',
- ),
- 'Bill' => array(
- 'ico' => '',
- 'text' => lang('ds_bill_manage'),
- 'args' => 'show_statis,Bill,trade',
- ),
- 'consulting' => array(
- 'ico' => '',
- 'text' => lang('ds_consulting'),
- 'args' => 'Consulting,Consulting,trade',
- ),
- 'inform' => array(
- 'ico' => '',
- 'text' => lang('ds_inform'),
- 'args' => 'inform_list,Inform,trade',
- ),
- 'evaluate' => array(
- 'ico' => '',
- 'text' => lang('ds_evaluate'),
- 'args' => 'evalgoods_list,Evaluate,trade',
- ),
- 'complain' => array(
- 'ico' => '',
- 'text' => lang('ds_complain'),
- 'args' => 'complain_new_list,Complain,trade',
- ),
- ),
- ),
- 'website' => array(
- 'name' => 'website',
- 'text' => lang('ds_website'),
- 'show' => TRUE,
- 'children' => array(
- 'Articleclass' => array(
- 'ico' => '',
- 'text' => lang('ds_articleclass'),
- 'args' => 'index,Articleclass,website',
- ),
- 'Article' => array(
- 'ico' => '',
- 'text' => lang('ds_article'),
- 'args' => 'index,Article,website',
- ),
- 'Document' => array(
- 'ico' => '',
- 'text' => lang('ds_document'),
- 'args' => 'index,Document,website',
- ),
- 'Navigation' => array(
- 'ico' => '',
- 'text' => lang('ds_navigation'),
- 'args' => 'index,Navigation,website',
- ),
- 'Adv' => array(
- 'ico' => '',
- 'text' => lang('ds_adv'),
- 'args' => 'ap_manage,Adv,website',
- ),
- 'EditablePagePc' => array(
- 'ico' => '',
- 'text' => lang('editable_page_pc'),
- 'args' => 'page_list,EditablePage,website',
- ),
- 'EditablePageH5' => array(
- 'ico' => '',
- 'text' => lang('editable_page_h5'),
- 'args' => 'h5_page_list,EditablePage,website',
- ),
- 'Link' => array(
- 'ico' => '',
- 'text' => lang('ds_friendlink'),
- 'args' => 'index,Link,website',
- ),
- 'Mallconsult' => array(
- 'ico' => '',
- 'text' => lang('ds_mall_consult'),
- 'args' => 'index,Mallconsult,website',
- ),
- 'Feedback' => array(
- 'ico' => '',
- 'text' => lang('ds_feedback'),
- 'args' => 'flist,Feedback,website',
- ),
- ),
- ),
- 'operation' => array(
- 'name' => 'operation',
- 'text' => lang('ds_operation'),
- 'show' => TRUE,
- 'children' => array(
- 'Operation' => array(
- 'ico' => '',
- 'text' => lang('ds_operation_set'),
- 'args' => 'index,Operation,operation',
- ),
- ),
- ),
- 'stat' => array(
- 'name' => 'stat',
- 'text' => lang('ds_stat'),
- 'show' => TRUE,
- 'children' => array(
- 'stat_general' => array(
- 'ico' => '',
- 'text' => lang('ds_statgeneral'),
- 'args' => 'general,Statgeneral,stat',
- ),
- 'stat_industry' => array(
- 'ico' => '',
- 'text' => lang('ds_statindustry'),
- 'args' => 'scale,Statindustry,stat',
- ),
- 'stat_member' => array(
- 'ico' => '',
- 'text' => lang('ds_statmember'),
- 'args' => 'newmember,Statmember,stat',
- ),
- 'stat_store' => array(
- 'ico' => '',
- 'text' => lang('ds_statstore'),
- 'args' => 'newstore,Statstore,stat',
- ),
- 'stat_trade' => array(
- 'ico' => '',
- 'text' => lang('ds_stattrade'),
- 'args' => 'income,Stattrade,stat',
- ),
- 'stat_goods' => array(
- 'ico' => '',
- 'text' => lang('ds_statgoods'),
- 'args' => 'pricerange,Statgoods,stat',
- ),
- 'stat_marketing' => array(
- 'ico' => '',
- 'text' => lang('ds_statmarketing'),
- 'args' => 'promotion,Statmarketing,stat',
- ),
- 'stat_stataftersale' => array(
- 'ico' => '',
- 'text' => lang('ds_stataftersale'),
- 'args' => 'refund,Stataftersale,stat',
- ),
- ),
- ),
- 'mobile' => array(
- 'name' => 'mobile',
- 'text' => lang('mobile'),
- 'show' => TRUE,
- 'children' => array(
- 'app_appadv' => array(
- 'text' => lang('appadv'),
- 'args' => 'index,Appadv,mobile',
- ),
- ),
- ),
- 'wechat' => array(
- 'name' => 'wechat',
- 'text' => lang('wechat'),
- 'show' => TRUE,
- 'children' => array(
- 'wechat_setting' => array(
- 'ico' => '',
- 'text' => lang('wechat_setting'),
- 'args' => 'setting,Wechat,wechat',
- ),
- 'wechat_material' => array(
- 'ico' => '',
- 'text' => lang('wechat_material'),
- 'args' => 'material,Wechat,wechat',
- ),
- 'wechat_menu' => array(
- 'ico' => '',
- 'text' => lang('wechat_menu'),
- 'args' => 'menu,Wechat,wechat',
- ),
- 'wechat_keywords' => array(
- 'ico' => '',
- 'text' => lang('wechat_keywords'),
- 'args' => 'k_text,Wechat,wechat',
- ),
- 'wechat_member' => array(
- 'ico' => '',
- 'text' => lang('wechat_member'),
- 'args' => 'member,Wechat,wechat',
- ),
- 'wechat_push' => array(
- 'ico' => '',
- 'text' => lang('wechat_push'),
- 'args' => 'SendList,Wechat,wechat',
- ),
- ),
- ),
- 'flea' => array(
- 'name' => 'flea',
- 'text' => lang('flea'),
- 'show' => FALSE,
- 'children' => array(
- 'flea_mes' => array(
- 'text' => lang('flea_mes'),
- 'args' => 'flea,Flea,flea',
- ),
- 'flea_index' => array(
- 'ico' => '',
- 'text' => lang('flea_seo'),
- 'args' => 'index,Fleaseo,flea',
- ),
- 'flea_class' => array(
- 'ico' => '',
- 'text' => lang('flea_class'),
- 'args' => 'flea_class,Fleaclass,flea',
- ),
- 'flea_class_index' => array(
- 'ico' => '',
- 'text' => lang('flea_class_index'),
- 'args' => 'flea_class_index,Fleaclassindex,flea',
- ),
- 'flea_region' => array(
- 'ico' => '',
- 'text' => lang('flea_region'),
- 'args' => 'flea_region,Flearegion,flea',
- ),
- 'flea_adv_manage' => array(
- 'ico' => '',
- 'text' => lang('flea_adv_manage'),
- 'args' => 'adv_manage,Fleaseo,flea',
- ),
- ),
- ),
- 'live' => array(
- 'name' => 'live',
- 'text' => lang('ds_live'),
- 'show' => TRUE,
- 'children' => array(
- 'live_setting' => array(
- 'ico' => '',
- 'text' => lang('live_setting'),
- 'args' => 'index,LiveSetting,live',
- ),
- 'live_apply' => array(
- 'ico' => '',
- 'text' => lang('live_apply'),
- 'args' => 'index,LiveApply,live',
- ),
- 'live_goods' => array(
- 'ico' => '',
- 'text' => lang('live_goods'),
- 'args' => 'index,LiveGoods,live',
- ),
- ),
- ),
- );
- }
- /*
- * 权限选择列表
- */
- function limitList()
- {
- $_limit = array(
- array('name' => lang('ds_setting'), 'child' => array(
- array('name' => lang('ds_base'), 'action' => null, 'controller' => 'Config'),
- array('name' => lang('ds_account'), 'action' => null, 'controller' => 'Account'),
- array('name' => lang('ds_upload_set'), 'action' => null, 'controller' => 'Upload'),
- array('name' => lang('ds_seo_set'), 'action' => null, 'controller' => 'Seo'),
- array('name' => lang('ds_payment'), 'action' => null, 'controller' => 'Payment'),
- array('name' => lang('ds_message'), 'action' => null, 'controller' => 'Message'),
- array('name' => lang('ds_admin'), 'action' => null, 'controller' => 'Admin'),
- array('name' => lang('ds_express'), 'action' => null, 'controller' => 'Express'),
- array('name' => lang('ds_region'), 'action' => null, 'controller' => 'Region'),
- array('name' => lang('ds_db'), 'action' => null, 'controller' => 'Database'),
- array('name' => lang('ds_adminlog'), 'action' => null, 'controller' => 'Adminlog'),
- )),
- array('name' => lang('ds_goods'), 'child' => array(
- array('name' => lang('ds_goods_manage'), 'action' => null, 'controller' => 'Goods'),
- array('name' => lang('ds_goodsclass'), 'action' => null, 'controller' => 'Goodsclass'),
- array('name' => lang('ds_brand_manage'), 'action' => null, 'controller' => 'Brand'),
- array('name' => lang('ds_type'), 'action' => null, 'controller' => 'Type'),
- array('name' => lang('ds_spec'), 'action' => null, 'controller' => 'Spec'),
- array('name' => lang('ds_album'), 'action' => null, 'controller' => 'Goodsalbum'),
- array('name' => lang('ds_video'), 'action' => null, 'controller' => 'Goodsvideo'),
- array('name' => lang('ds_arrivalnotice'), 'action' => null, 'controller' => 'Arrivalnotice'),
- )),
- array('name' => lang('ds_store'), 'child' => array(
- array('name' => lang('ds_store_manage'), 'action' => null, 'controller' => 'Store'),
- array('name' => lang('ds_store_money'), 'action' => null, 'controller' => 'Storemoney'),
- array('name' => lang('ds_store_deposit'), 'action' => null, 'controller' => 'Storedeposit'),
- array('name' => lang('ds_storegrade'), 'action' => null, 'controller' => 'Storegrade'),
- array('name' => lang('ds_storeclass'), 'action' => null, 'controller' => 'Storeclass'),
- // array('name' => lang('ds_chain'), 'action' => null, 'controller' => 'Chain'),
- array('name' => lang('ds_storesnstrace'), 'action' => null, 'controller' => 'Storesnstrace'),
- array('name' => lang('ds_Storehelp'), 'action' => null, 'controller' => 'Storehelp'),
- array('name' => lang('ds_storejoin'), 'action' => null, 'controller' => 'Storejoin'),
- array('name' => lang('ds_ownshop'), 'action' => null, 'controller' => 'Ownshop'),
- )),
- array('name' => lang('ds_member'), 'child' => array(
- array('name' => lang('ds_member_manage'), 'action' => null, 'controller' => 'Member'),
- array('name' => lang('member_auth'), 'action' => null, 'controller' => 'MemberAuth'),
- array('name' => lang('ds_membergrade'), 'action' => null, 'controller' => 'Membergrade'),
- array('name' => lang('ds_exppoints'), 'action' => null, 'controller' => 'Exppoints'),
- array('name' => lang('ds_notice'), 'action' => null, 'controller' => 'Notice'),
- array('name' => lang('ds_points'), 'action' => null, 'controller' => 'Points'),
- array('name' => lang('ds_snsmalbum'), 'action' => null, 'controller' => 'Snsmalbum'),
- array('name' => lang('ds_snsmember'), 'action' => null, 'controller' => 'Snsmember'),
- array('name' => lang('ds_predeposit'), 'action' => null, 'controller' => 'Predeposit'),
- array('name' => lang('instant_message'), 'action' => null, 'controller' => 'InstantMessage'),
- )),
- array('name' => lang('ds_trade'), 'child' => array(
- array('name' => lang('ds_order'), 'action' => null, 'controller' => 'Order'),
- array('name' => lang('ds_vrorder'), 'action' => null, 'controller' => 'Vrorder'),
- array('name' => lang('ds_refund'), 'action' => null, 'controller' => 'Refund'),
- array('name' => lang('ds_return'), 'action' => null, 'controller' => 'Returnmanage'),
- array('name' => lang('ds_vrrefund'), 'action' => null, 'controller' => 'Vrrefund'),
- array('name' => lang('ds_bill_manage'), 'action' => null, 'controller' => 'Bill'),
- array('name' => lang('ds_consulting'), 'action' => null, 'controller' => 'Consulting'),
- array('name' => lang('ds_inform'), 'action' => null, 'controller' => 'Inform'),
- array('name' => lang('ds_evaluate'), 'action' => null, 'controller' => 'Evaluate'),
- array('name' => lang('ds_complain'), 'action' => null, 'controller' => 'Complain'),
- )),
- array('name' => lang('ds_website'), 'child' => array(
- array('name' => lang('ds_articleclass'), 'action' => null, 'controller' => 'Articleclass'),
- array('name' => lang('ds_article'), 'action' => null, 'controller' => 'Article'),
- array('name' => lang('ds_document'), 'action' => null, 'controller' => 'Document'),
- array('name' => lang('ds_navigation'), 'action' => null, 'controller' => 'Navigation'),
- array('name' => lang('ds_adv'), 'action' => null, 'controller' => 'Adv'),
- array('name' => lang('editable_page_pc'), 'action' => 'page_list', 'controller' => 'EditablePage'),
- array('name' => lang('editable_page_h5'), 'action' => 'h5_page_list', 'controller' => 'EditablePage'),
- array('name' => lang('ds_friendlink'), 'action' => null, 'controller' => 'Link'),
- array('name' => lang('ds_mall_consult'), 'action' => null, 'controller' => 'Mallconsult'),
- array('name' => lang('ds_feedback'), 'action' => null, 'controller' => 'Feedback'),
- )),
- array('name' => lang('ds_operation'), 'child' => array(
- array('name' => lang('ds_operation_set'), 'action' => null, 'controller' => 'Operation|Promotionwholesale|Promotionxianshi|Promotionmansong|Promotionbundling|Promotionbooth|Groupbuy|Vrgroupbuy|Voucher|Promotionmgdiscount|Promotionpintuan|Promotionbargain|Activity|EditablePage|Inviter|Bonus|Marketmanage|Pointprod|Pointorder|Rechargecard|Flea|Fleaseo|Fleaclass|Fleaclassindex|Flearegion|Fleaseo|Promotionpresell'),
- )),
- array('name' => lang('ds_stat'), 'child' => array(
- array('name' => lang('ds_statgeneral'), 'action' => null, 'controller' => 'Statgeneral'),
- array('name' => lang('ds_statindustry'), 'action' => null, 'controller' => 'Statindustry'),
- array('name' => lang('ds_statmember'), 'action' => null, 'controller' => 'Statmember'),
- array('name' => lang('ds_statstore'), 'action' => null, 'controller' => 'Statstore'),
- array('name' => lang('ds_stattrade'), 'action' => null, 'controller' => 'Stattrade'),
- array('name' => lang('ds_statgoods'), 'action' => null, 'controller' => 'Statgoods'),
- array('name' => lang('ds_statmarketing'), 'action' => null, 'controller' => 'Statmarketing'),
- array('name' => lang('ds_stataftersale'), 'action' => null, 'controller' => 'Stataftersale'),
- )),
- array('name' => lang('mobile'), 'child' => array(
- array('name' => lang('appadv'), 'action' => null, 'controller' => 'Appadv'),
- )),
- array('name' => lang('wechat'), 'child' => array(
- array('name' => lang('wechat_setting'), 'action' => 'setting', 'controller' => 'Wechat'),
- array('name' => lang('wechat_template_message'), 'action' => 'template_message', 'controller' => 'Wechat'),
- array('name' => lang('wechat_menu'), 'action' => 'menu', 'controller' => 'Wechat'),
- array('name' => lang('wechat_keywords'), 'action' => 'k_text', 'controller' => 'Wechat'),
- array('name' => lang('wechat_member'), 'action' => 'member', 'controller' => 'Wechat'),
- array('name' => lang('wechat_push'), 'action' => 'SendList', 'controller' => 'Wechat'),
- )),
- array('name' => lang('ds_live'), 'child' => array(
- array('name' => lang('live_setting'), 'action' => null, 'controller' => 'LiveSetting'),
- array('name' => lang('live_apply'), 'action' => null, 'controller' => 'LiveApply'),
- array('name' => lang('live_goods'), 'action' => null, 'controller' => 'LiveGoods'),
- )),
- );
- return $_limit;
- }
- }
|