IsLogin(); // 权限校验 $this->IsPower(); } /** * 后台配置 * @author Devil * @blog http://gong.gg/ * @version 0.0.1 * @datetime 2016-12-06T21:31:53+0800 */ public function Index() { // csv $this->assign('common_excel_charset_list', lang('common_excel_charset_list')); // 扣除库存规则 $this->assign('common_deduction_inventory_rules_list', lang('common_deduction_inventory_rules_list')); // 是否 $this->assign('common_is_text_list', lang('common_is_text_list')); // 配置信息 $this->assign('data', ConfigService::ConfigList()); return $this->fetch(); } /** * 商店信息 * @author Devil * @blog http://gong.gg/ * @version 0.0.1 * @datetime 2016-12-06T21:31:53+0800 */ public function Store() { // 配置信息 $this->assign('data', ConfigService::ConfigList()); return $this->fetch(); } /** * 配置数据保存 * @author Devil * @blog http://gong.gg/ * @version 0.0.1 * @datetime 2017-01-02T23:08:19+0800 */ public function Save() { // 数据处理 // 商店二维码 if(!isset($_POST['common_customer_store_qrcode'])) { $_POST['common_customer_store_qrcode'] = ''; } // 保存 return ConfigService::ConfigSave($_POST); } } ?>