From 41200346b4cc5b062b101bdc4e53d38ae93188dd Mon Sep 17 00:00:00 2001 From: Devil Date: Sun, 8 Sep 2019 22:11:53 +0800 Subject: [PATCH] =?UTF-8?q?=E9=99=84=E4=BB=B6=E6=8E=A5=E5=8F=A3=E8=AF=B7?= =?UTF-8?q?=E6=B1=82=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/index/controller/Ueditor.php | 7 +++ application/tags.php | 79 ++++++++++++++++++++++++ config/app.php | 2 +- config/shopxo.php | 2 +- 4 files changed, 88 insertions(+), 2 deletions(-) diff --git a/application/index/controller/Ueditor.php b/application/index/controller/Ueditor.php index 811d06957..075531099 100644 --- a/application/index/controller/Ueditor.php +++ b/application/index/controller/Ueditor.php @@ -44,6 +44,13 @@ class Ueditor extends Common */ public function Index() { + // 是否ajax请求 + if(!IS_AJAX) + { + $this->error('非法访问'); + } + + // 调用附件服务层 $ret = UeditorService::Run(input()); if($ret['code'] == 0) { diff --git a/application/tags.php b/application/tags.php index 7fb4b4ce8..95370b5c6 100755 --- a/application/tags.php +++ b/application/tags.php @@ -32,5 +32,84 @@ return array ( 'log_write' => array ( ), + 'plugins_css' => + array ( + 0 => 'app\\plugins\\limitedtimediscount\\Hook', + 1 => 'app\\plugins\\membershiplevelvip\\Hook', + ), + 'plugins_js' => + array ( + 0 => 'app\\plugins\\limitedtimediscount\\Hook', + ), + 'plugins_service_navigation_header_handle' => + array ( + 0 => 'app\\plugins\\limitedtimediscount\\Hook', + ), + 'plugins_service_goods_handle_end' => + array ( + 0 => 'app\\plugins\\limitedtimediscount\\Hook', + 1 => 'app\\plugins\\membershiplevelvip\\Hook', + ), + 'plugins_service_goods_spec_base' => + array ( + 0 => 'app\\plugins\\limitedtimediscount\\Hook', + 1 => 'app\\plugins\\membershiplevelvip\\Hook', + ), + 'plugins_view_goods_detail_base_top' => + array ( + 0 => 'app\\plugins\\limitedtimediscount\\Hook', + ), + 'plugins_view_home_floor_top' => + array ( + 0 => 'app\\plugins\\limitedtimediscount\\Hook', + ), + 'plugins_service_buy_handle' => + array ( + 0 => 'app\\plugins\\membershiplevelvip\\Hook', + ), + 'plugins_service_user_login_success_record' => + array ( + 0 => 'app\\plugins\\membershiplevelvip\\Hook', + ), + 'plugins_service_goods_spec_extends_handle' => + array ( + 0 => 'app\\plugins\\membershiplevelvip\\Hook', + ), + 'plugins_view_admin_user_save' => + array ( + 0 => 'app\\plugins\\membershiplevelvip\\Hook', + ), + 'plugins_service_user_save_handle' => + array ( + 0 => 'app\\plugins\\membershiplevelvip\\Hook', + ), + 'plugins_service_goods_save_handle' => + array ( + 0 => 'app\\plugins\\membershiplevelvip\\Hook', + ), + 'plugins_view_goods_detail_panel_price_top' => + array ( + 0 => 'app\\plugins\\membershiplevelvip\\Hook', + ), + 'plugins_view_home_goods_inside_bottom' => + array ( + 0 => 'app\\plugins\\membershiplevelvip\\Hook', + ), + 'plugins_view_search_goods_inside_bottom' => + array ( + 0 => 'app\\plugins\\membershiplevelvip\\Hook', + ), + 'plugins_service_goods_spec_type' => + array ( + 0 => 'app\\plugins\\membershiplevelvip\\Hook', + ), + 'plugins_service_users_center_left_menu_handle' => + array ( + 0 => 'app\\plugins\\wallet\\Hook', + ), + 'plugins_service_header_navigation_top_right_handle' => + array ( + 0 => 'app\\plugins\\wallet\\Hook', + ), ); ?> \ No newline at end of file diff --git a/config/app.php b/config/app.php index 3d956197d..85cbfacdc 100755 --- a/config/app.php +++ b/config/app.php @@ -19,7 +19,7 @@ return [ // 应用地址 'app_host' => '', // 应用调试模式 - 'app_debug' => false, + 'app_debug' => true, // 应用Trace 'app_trace' => false, // 是否支持多模块 diff --git a/config/shopxo.php b/config/shopxo.php index 8021e7794..6cc7668a4 100755 --- a/config/shopxo.php +++ b/config/shopxo.php @@ -15,7 +15,7 @@ return [ // 开发模式 - 'is_develop' => false, + 'is_develop' => true, // 默认编码 'default_charset' => 'utf-8',