Browse Source

xiaoyu new config

xiaoyu 3 years ago
parent
commit
a2bec280b8
3 changed files with 323 additions and 323 deletions
  1. 120 120
      data/config/win/base.ini.php
  2. 92 92
      docker/conf/nginx/nginx-win-http.conf
  3. 111 111
      helper/fcgisrv/MerchantServer.php

+ 120 - 120
data/config/win/base.ini.php

@@ -1,121 +1,121 @@
-<?php declare(strict_types=1);
-defined('InShopNC') or exit('Access Invalid!');
-
-define('USE_REMOTE_IMAGE',false);
-define('DEBUG_MODE',true);
-define('MOBILE_PUBLISH',false);
-define('PUSH_OMS',true);
-define('LOCAL_DEBUG',false);
-define('BONUS_EXPIRY_DATE',true);
-define('USE_BONUS_RATE',false);
-define('SERVER_TYPE','panda');
-define('CROSS_DOAMIN',true);
-define('COOKIE_DOMAIN','192.168.1.232');
-define('COMPANY_NAME', 'XYZ_COMPANY');
-define('NET_IP','125.33.203.108');
-
-$SRV_HOST = 'http://192.168.1.232';
-$REMOTE_IMG_HOST = $SRV_HOST;
-
-$config = [];
-$config['base_site_url']        = $SRV_HOST;
-$config['client_site_url']      = $SRV_HOST;
-$config['shop_site_url'] 		= $SRV_HOST.'/shop';
-$config['cms_site_url'] 		= $SRV_HOST.'/cms';
-$config['microshop_site_url'] 	= $SRV_HOST.'/microshop';
-$config['circle_site_url'] 		= $SRV_HOST.'/circle';
-$config['admin_site_url'] 		= $SRV_HOST.'/admin';
-$config['mobile_site_url'] 		= $SRV_HOST.'/mobile';
-$config['wap_site_url'] 		= $SRV_HOST.'/wap';
-$config['chat_site_url'] 		= $SRV_HOST.'/chat';
-$config['node_site_url'] 		= 'http://127.0.0.1:8090';
-$config['delivery_site_url']    = $SRV_HOST.'/delivery';
-//$config['system_manager_phones'] = [
-//    '13911129867' , '18500608333' , '18500350111' , '15136908757'
-//];
-$config['system_manager_phones'] = [
-//    '17801048874' , '17611378259'
-];
-
-if(defined('USE_REMOTE_IMAGE') && USE_REMOTE_IMAGE == true) {
-    $config['upload_site_url']		= $REMOTE_IMG_HOST.'/data/upload';
-    $config['resource_site_url']	= $REMOTE_IMG_HOST.'/data/resource';
-} else {
-    $config['upload_site_url']		= $SRV_HOST.'/data/upload';
-    $config['resource_site_url']	= $SRV_HOST.'/data/resource';
-}
-
-$config['version'] 	= '201502020388';
-$config['setup_date'] = '2015-08-22 15:52:34';
-$config['gip'] 		= 0;
-$config['dbdriver'] = 'mysqli';
-$config['tablepre']	= 'lrlz_';
-
-$config['db'][1]['dbhost']       = 'host.docker.internal';
-$config['db'][1]['dbport']       = '3306';
-$config['db'][1]['dbuser']       = 'root';
-$config['db'][1]['dbpwd']        = 'root';
-$config['db'][1]['dbname']       = 'xyzshop';
-$config['db'][1]['dbcharset']    = 'UTF-8';
-
-$config['db']['slave'][0]['dbhost']     = 'host.docker.internal';
-$config['db']['slave'][0]['dbport']     = '3306';
-$config['db']['slave'][0]['dbuser']     = 'root';
-$config['db']['slave'][0]['dbpwd']      = 'root';
-$config['db']['slave'][0]['dbname']     = 'xyzshop';
-$config['db']['slave'][0]['dbcharset']  = 'UTF-8';
-
-$config['session_expire'] 	= 3600;
-$config['lang_type'] 		= 'zh_cn';
-$config['cookie_pre'] 		= '6B0C_';
-$config['thumb']['cut_type'] = 'gd';
-$config['thumb']['impath'] = '';
-
-$config['cache']['type'] 		= 'redis';
-$config['redis']['prefix']      	= 'nc_';
-$config['redis']['master']['host']     	= 'tcp://redisrv';
-$config['redis']['master']['port']     	= 6379;
-$config['redis']['master']['pconnect'] 	= 0;
-$config['redis']['slave']['host']     	= 'tcp://redisrv';
-$config['redis']['slave']['port']     	= 6379;
-$config['redis']['slave']['pconnect'] 	= 0;
-
-
-//$config['fullindexer']['open']      = false;
-//$config['fullindexer']['appname']   = '33hao';
-$config['debug'] 		      = false;
-$config['default_store_id'] = '1';
-//如果开始伪静态,这里设置为true
-$config['url_model'] = false;
-
-//如果店铺开启二级域名绑定的,这里填写主域名如baidu.com
-$config['subdomain_suffix'] = '';
-$config['session_type'] = 'redis';
-$config['session_save_path'] = 'tcp://redisrv:6379';
-$config['node_chat'] = true;
-
-//流量记录表数量,为1~10之间的数字,默认为3,数字设置完成后请不要轻易修改,否则可能造成流量统计功能数据错误
-$config['flowstat_tablenum'] = 3;
-$config['sms']['gwUrl'] = 'http://sdkhttp.eucp.b2m.cn/sdk/SDKService';
-$config['sms']['serialNumber'] = '';
-$config['sms']['password']     = '';
-$config['sms']['sessionKey']   = '';
-
-$config['queue']['open'] = true;
-$config['queue']['host'] = 'tcp://redisrv';
-$config['queue']['port'] = 6379;
-$config['cache_open']    = true;
-
-$config['return_address'] = ['address' => '上海市金山区朱吕公路7335号','name' => "大熊猫(丽帆供应链)",'tel_phone' => '17301603655','zip_code' => '201600'];
-$config['area_version'] = 5;
-$config['appjump_prefix'] = 'xyzshop://www.xyzshops.com';
-
-$config['client_setting'] = ['running' => 174,'home' => 0];
-
-$config['refill_specs'] = [
-    'petrochina'    => [100 , 200 , 500 , 1000 , 2000],
-    'sinopec'       => [100 , 200 , 500 , 1000 , 2000],
-    'chinamobile'   => [10 , 20 , 30 , 50 , 100 , 200 , 500 , 1000],
-    'chinaunicom'   => [10 , 20 , 30 , 50 , 100 , 200 , 500 , 1000],
-    'chinatelecom'  => [10 , 20 , 30 , 50 , 100 , 200 , 500 , 1000]
+<?php declare(strict_types=1);
+defined('InShopNC') or exit('Access Invalid!');
+
+define('USE_REMOTE_IMAGE',false);
+define('DEBUG_MODE',true);
+define('MOBILE_PUBLISH',false);
+define('PUSH_OMS',true);
+define('LOCAL_DEBUG',false);
+define('BONUS_EXPIRY_DATE',true);
+define('USE_BONUS_RATE',false);
+define('SERVER_TYPE','panda');
+define('CROSS_DOAMIN',true);
+define('COOKIE_DOMAIN','192.168.1.218');
+define('COMPANY_NAME', 'XYZ_COMPANY');
+define('NET_IP','125.33.203.108');
+
+$SRV_HOST = 'http://192.168.1.218';
+$REMOTE_IMG_HOST = $SRV_HOST;
+
+$config = [];
+$config['base_site_url']        = $SRV_HOST;
+$config['client_site_url']      = $SRV_HOST;
+$config['shop_site_url'] 		= $SRV_HOST.'/shop';
+$config['cms_site_url'] 		= $SRV_HOST.'/cms';
+$config['microshop_site_url'] 	= $SRV_HOST.'/microshop';
+$config['circle_site_url'] 		= $SRV_HOST.'/circle';
+$config['admin_site_url'] 		= $SRV_HOST.'/admin';
+$config['mobile_site_url'] 		= $SRV_HOST.'/mobile';
+$config['wap_site_url'] 		= $SRV_HOST.'/wap';
+$config['chat_site_url'] 		= $SRV_HOST.'/chat';
+$config['node_site_url'] 		= 'http://127.0.0.1:8090';
+$config['delivery_site_url']    = $SRV_HOST.'/delivery';
+//$config['system_manager_phones'] = [
+//    '13911129867' , '18500608333' , '18500350111' , '15136908757'
+//];
+$config['system_manager_phones'] = [
+//    '17801048874' , '17611378259'
+];
+
+if(defined('USE_REMOTE_IMAGE') && USE_REMOTE_IMAGE == true) {
+    $config['upload_site_url']		= $REMOTE_IMG_HOST.'/data/upload';
+    $config['resource_site_url']	= $REMOTE_IMG_HOST.'/data/resource';
+} else {
+    $config['upload_site_url']		= $SRV_HOST.'/data/upload';
+    $config['resource_site_url']	= $SRV_HOST.'/data/resource';
+}
+
+$config['version'] 	= '201502020388';
+$config['setup_date'] = '2015-08-22 15:52:34';
+$config['gip'] 		= 0;
+$config['dbdriver'] = 'mysqli';
+$config['tablepre']	= 'lrlz_';
+
+$config['db'][1]['dbhost']       = 'host.docker.internal';
+$config['db'][1]['dbport']       = '3306';
+$config['db'][1]['dbuser']       = 'root';
+$config['db'][1]['dbpwd']        = 'root';
+$config['db'][1]['dbname']       = 'xyzshop';
+$config['db'][1]['dbcharset']    = 'UTF-8';
+
+$config['db']['slave'][0]['dbhost']     = 'host.docker.internal';
+$config['db']['slave'][0]['dbport']     = '3306';
+$config['db']['slave'][0]['dbuser']     = 'root';
+$config['db']['slave'][0]['dbpwd']      = 'root';
+$config['db']['slave'][0]['dbname']     = 'xyzshop';
+$config['db']['slave'][0]['dbcharset']  = 'UTF-8';
+
+$config['session_expire'] 	= 3600;
+$config['lang_type'] 		= 'zh_cn';
+$config['cookie_pre'] 		= '6B0C_';
+$config['thumb']['cut_type'] = 'gd';
+$config['thumb']['impath'] = '';
+
+$config['cache']['type'] 		= 'redis';
+$config['redis']['prefix']      	= 'nc_';
+$config['redis']['master']['host']     	= 'tcp://redisrv';
+$config['redis']['master']['port']     	= 6379;
+$config['redis']['master']['pconnect'] 	= 0;
+$config['redis']['slave']['host']     	= 'tcp://redisrv';
+$config['redis']['slave']['port']     	= 6379;
+$config['redis']['slave']['pconnect'] 	= 0;
+
+
+//$config['fullindexer']['open']      = false;
+//$config['fullindexer']['appname']   = '33hao';
+$config['debug'] 		      = false;
+$config['default_store_id'] = '1';
+//如果开始伪静态,这里设置为true
+$config['url_model'] = false;
+
+//如果店铺开启二级域名绑定的,这里填写主域名如baidu.com
+$config['subdomain_suffix'] = '';
+$config['session_type'] = 'redis';
+$config['session_save_path'] = 'tcp://redisrv:6379';
+$config['node_chat'] = true;
+
+//流量记录表数量,为1~10之间的数字,默认为3,数字设置完成后请不要轻易修改,否则可能造成流量统计功能数据错误
+$config['flowstat_tablenum'] = 3;
+$config['sms']['gwUrl'] = 'http://sdkhttp.eucp.b2m.cn/sdk/SDKService';
+$config['sms']['serialNumber'] = '';
+$config['sms']['password']     = '';
+$config['sms']['sessionKey']   = '';
+
+$config['queue']['open'] = true;
+$config['queue']['host'] = 'tcp://redisrv';
+$config['queue']['port'] = 6379;
+$config['cache_open']    = true;
+
+$config['return_address'] = ['address' => '上海市金山区朱吕公路7335号','name' => "大熊猫(丽帆供应链)",'tel_phone' => '17301603655','zip_code' => '201600'];
+$config['area_version'] = 5;
+$config['appjump_prefix'] = 'xyzshop://www.xyzshops.com';
+
+$config['client_setting'] = ['running' => 174,'home' => 0];
+
+$config['refill_specs'] = [
+    'petrochina'    => [100 , 200 , 500 , 1000 , 2000],
+    'sinopec'       => [100 , 200 , 500 , 1000 , 2000],
+    'chinamobile'   => [10 , 20 , 30 , 50 , 100 , 200 , 500 , 1000],
+    'chinaunicom'   => [10 , 20 , 30 , 50 , 100 , 200 , 500 , 1000],
+    'chinatelecom'  => [10 , 20 , 30 , 50 , 100 , 200 , 500 , 1000]
 ];

+ 92 - 92
docker/conf/nginx/nginx-win-http.conf

@@ -1,92 +1,92 @@
-
-user nginx;
-worker_processes  1;
-error_log   /var/error.log  info;
-#pid        logs/nginx.pid;
-worker_rlimit_nofile 1024;
-
-events {
-    worker_connections  1024;
-}
-
-http 
-{
-    include       mime.types;
-    default_type  application/octet-stream;
-    fastcgi_buffer_size 32k;
-    fastcgi_buffers 8 32k;
-    underscores_in_headers on;
-    client_max_body_size 1024M;
-
-    sendfile            on;
-    keepalive_timeout   65;
-
-    log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
-                      '$status $body_bytes_sent "$http_referer" '
-                      '"$http_user_agent" "$http_x_forwarded_for"';
-
-    server 
-    {
-    	listen       80;
-        set  $folder_name /var/www/html;
-        server_name 192.168.1.232 www.xyxy.com;
-        root $folder_name;
-        index index.html index.php; 
-    	client_max_body_size 100m;
-    	proxy_connect_timeout 500s;
-        proxy_read_timeout 500s;
-        proxy_send_timeout 500s;
-        fastcgi_connect_timeout 75;
-        fastcgi_read_timeout 600;   
-        fastcgi_send_timeout 600;   
-
-        charset utf-8;
-        
-        location /logs {
-            deny all;
-            return 403;
-        }
-
-        location /data/log {
-            deny all;
-            return 403;
-        }
-        location / {
-            index  index.html index.htm index.php;
-        }
-        
-        location /mshop {
-            root $folder_name;
-            autoindex on;        
-            index  index.html index.htm index.php;
-	        try_files $uri $uri/ /mshop/index.html;
-        }
-
-        location ~ /mobile/[/\w]+\.php$ {
-            root           $folder_name;
-            fastcgi_pass   mobilesrv:9100;
-            fastcgi_index  index.php;
-            fastcgi_param  SCRIPT_FILENAME  $folder_name$fastcgi_script_name;
-            include fastcgi_params;
-        }
-
-        location ~ /mobile/[/\w]+\.html$ {
-            try_files $uri $uri/ /mobile/index.html;
-        }
-
-        location ~ \.php$ {
-	        add_header Cache-Control no-store;
-            root           $folder_name;
-            fastcgi_pass   websrv:9000;
-            fastcgi_index  index.php;
-            fastcgi_param  SCRIPT_FILENAME  $folder_name$fastcgi_script_name;
-            include        fastcgi_params;
-        }
-    }
-
-    server {
-        listen       80;
-        server_name xyxyxy.com;
-        return 301 http://www.xyxy.com;
-    }
-}
+
+user nginx;
+worker_processes  1;
+error_log   /var/error.log  info;
+#pid        logs/nginx.pid;
+worker_rlimit_nofile 1024;
+
+events {
+    worker_connections  1024;
+}
+
+http 
+{
+    include       mime.types;
+    default_type  application/octet-stream;
+    fastcgi_buffer_size 32k;
+    fastcgi_buffers 8 32k;
+    underscores_in_headers on;
+    client_max_body_size 1024M;
+
+    sendfile            on;
+    keepalive_timeout   65;
+
+    log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
+                      '$status $body_bytes_sent "$http_referer" '
+                      '"$http_user_agent" "$http_x_forwarded_for"';
+
+    server 
+    {
+    	listen       80;
+        set  $folder_name /var/www/html;
+        server_name 192.168.1.218 www.xyxy.com;
+        root $folder_name;
+        index index.html index.php; 
+    	client_max_body_size 100m;
+    	proxy_connect_timeout 500s;
+        proxy_read_timeout 500s;
+        proxy_send_timeout 500s;
+        fastcgi_connect_timeout 75;
+        fastcgi_read_timeout 600;   
+        fastcgi_send_timeout 600;   
+
+        charset utf-8;
+        
+        location /logs {
+            deny all;
+            return 403;
+        }
+
+        location /data/log {
+            deny all;
+            return 403;
+        }
+        location / {
+            index  index.html index.htm index.php;
+        }
+        
+        location /mshop {
+            root $folder_name;
+            autoindex on;        
+            index  index.html index.htm index.php;
+	        try_files $uri $uri/ /mshop/index.html;
+        }
+
+        location ~ /mobile/[/\w]+\.php$ {
+            root           $folder_name;
+            fastcgi_pass   mobilesrv:9100;
+            fastcgi_index  index.php;
+            fastcgi_param  SCRIPT_FILENAME  $folder_name$fastcgi_script_name;
+            include fastcgi_params;
+        }
+
+        location ~ /mobile/[/\w]+\.html$ {
+            try_files $uri $uri/ /mobile/index.html;
+        }
+
+        location ~ \.php$ {
+	        add_header Cache-Control no-store;
+            root           $folder_name;
+            fastcgi_pass   websrv:9000;
+            fastcgi_index  index.php;
+            fastcgi_param  SCRIPT_FILENAME  $folder_name$fastcgi_script_name;
+            include        fastcgi_params;
+        }
+    }
+
+    server {
+        listen       80;
+        server_name xyxyxy.com;
+        return 301 http://www.xyxy.com;
+    }
+}

+ 111 - 111
helper/fcgisrv/MerchantServer.php

@@ -1,111 +1,111 @@
-<?php
-
-/**
- * Created by PhpStorm.
- * User: stanley-king
- * Date: 16/3/10
- * Time: 下午9:08
- */
-
-namespace fcgisrv;
-
-require_once(BASE_ROOT_PATH . '/helper/area_helper.php');
-require_once(BASE_CORE_PATH . '/framework/function/http.php');
-require_once(BASE_ROOT_PATH . '/helper/session_helper.php');
-require_once(BASE_ROOT_PATH . '/helper/sensitive_word/dfa.php');
-require_once(BASE_ROOT_PATH . '/helper/exceptionex.php');
-require_once(BASE_ROOT_PATH . '/helper/session_helper.php');
-require_once(BASE_HELPER_PATH . '/fcgisrv/BaseServer.php');
-require_once(BASE_HELPER_PATH . '/session.php');
-
-use DFAFilter;
-use area_helper;
-use Log;
-use session;
-use session_helper;
-use Base;
-use UnloginException;
-use Exception;
-use mobileControl;
-use errcode;
-
-class MerchantServer extends BaseServer
-{
-    static private $stInstance = NULL;
-    static public function instance()
-    {
-        if(self::$stInstance == NULL) {
-            self::$stInstance = new MerchantServer('mchsrv');
-
-        }
-        return self::$stInstance;
-    }
-
-    public function __construct($subPath)
-    {
-        parent::__construct($subPath);
-        $this->setExFiles([]);
-    }
-
-    protected function preLooper()
-    {
-        parent::preLooper();
-        DFAFilter::instance();
-        area_helper::instance();
-    }
-
-    public function handle_req($file)
-    {
-        try
-        {
-            if(file_exists($file))
-            {
-                if(defined('CROSS_DOAMIN') && CROSS_DOAMIN == true) {
-                    $host = 'http://192.168.1.146:3333';
-                    fcgi_header("Access-Control-Allow-Headers:DNT,X-Mx-ReqToken,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type, Accept-Language, Origin, Accept-Encoding");
-                    fcgi_header("Content-Type: text/html; charset=UTF-8");
-                    fcgi_header("Access-Control-Allow-Credentials: true");
-                    fcgi_header("Access-Control-Allow-Origin: {$host}");
-                    fcgi_header('Access-Control-Allow-Methods: GET, POST, PUT,DELETE,PATCH');
-                }
-
-                if($this->is_exclude($file)) {
-                    include $file;
-                }
-                else
-                {
-                    if(!isset($_GET['act'])) {
-                        $_GET['act'] = 'index';
-                    }
-                    if(!isset($_GET['op'])) {
-                        $_GET['op'] = 'index';
-                    }
-                    if(!isset($_POST['act'])) {
-                        $_POST['act'] = 'index';
-                    }
-                    if(!isset($_POST['op'])) {
-                        $_POST['op'] = 'index';
-                    }
-
-                    //部分控制器不需要使用session.
-                    session::instance()->start();
-                    Base::mobile_control();
-                }
-            }
-            else
-            {
-                Log::record("Can Not call file: {$file}",Log::DEBUG);
-                fcgi_header("Content-Type: text/html; charset=UTF-8");
-                echo "no such file.";
-            }
-        }
-        catch (UnloginException $ex) {
-            mobileControl::outerr(errcode::ErrUnLogin,errcode::msg(errcode::ErrUnLogin),'','android');
-        }
-        catch (Exception $ex) {
-            mobileControl::outerr($ex->getCode(),$ex->getMessage(),'','android');
-            Log::record("run_looper exception catch code={$ex->getCode()} msg={$ex->getMessage()} trace={$ex->getTraceAsString()}",Log::ERR);
-        }
-        session::instance()->end();
-    }
-}
+<?php
+
+/**
+ * Created by PhpStorm.
+ * User: stanley-king
+ * Date: 16/3/10
+ * Time: 下午9:08
+ */
+
+namespace fcgisrv;
+
+require_once(BASE_ROOT_PATH . '/helper/area_helper.php');
+require_once(BASE_CORE_PATH . '/framework/function/http.php');
+require_once(BASE_ROOT_PATH . '/helper/session_helper.php');
+require_once(BASE_ROOT_PATH . '/helper/sensitive_word/dfa.php');
+require_once(BASE_ROOT_PATH . '/helper/exceptionex.php');
+require_once(BASE_ROOT_PATH . '/helper/session_helper.php');
+require_once(BASE_HELPER_PATH . '/fcgisrv/BaseServer.php');
+require_once(BASE_HELPER_PATH . '/session.php');
+
+use DFAFilter;
+use area_helper;
+use Log;
+use session;
+use session_helper;
+use Base;
+use UnloginException;
+use Exception;
+use mobileControl;
+use errcode;
+
+class MerchantServer extends BaseServer
+{
+    static private $stInstance = NULL;
+    static public function instance()
+    {
+        if(self::$stInstance == NULL) {
+            self::$stInstance = new MerchantServer('mchsrv');
+
+        }
+        return self::$stInstance;
+    }
+
+    public function __construct($subPath)
+    {
+        parent::__construct($subPath);
+        $this->setExFiles([]);
+    }
+
+    protected function preLooper()
+    {
+        parent::preLooper();
+        DFAFilter::instance();
+        area_helper::instance();
+    }
+
+    public function handle_req($file)
+    {
+        try
+        {
+            if(file_exists($file))
+            {
+                if(defined('CROSS_DOAMIN') && CROSS_DOAMIN == true) {
+                    $host = 'http://192.168.1.160:3333';
+                    fcgi_header("Access-Control-Allow-Headers:DNT,X-Mx-ReqToken,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type, Accept-Language, Origin, Accept-Encoding");
+                    fcgi_header("Content-Type: text/html; charset=UTF-8");
+                    fcgi_header("Access-Control-Allow-Credentials: true");
+                    fcgi_header("Access-Control-Allow-Origin: {$host}");
+                    fcgi_header('Access-Control-Allow-Methods: GET, POST, PUT,DELETE,PATCH');
+                }
+
+                if($this->is_exclude($file)) {
+                    include $file;
+                }
+                else
+                {
+                    if(!isset($_GET['act'])) {
+                        $_GET['act'] = 'index';
+                    }
+                    if(!isset($_GET['op'])) {
+                        $_GET['op'] = 'index';
+                    }
+                    if(!isset($_POST['act'])) {
+                        $_POST['act'] = 'index';
+                    }
+                    if(!isset($_POST['op'])) {
+                        $_POST['op'] = 'index';
+                    }
+
+                    //部分控制器不需要使用session.
+                    session::instance()->start();
+                    Base::mobile_control();
+                }
+            }
+            else
+            {
+                Log::record("Can Not call file: {$file}",Log::DEBUG);
+                fcgi_header("Content-Type: text/html; charset=UTF-8");
+                echo "no such file.";
+            }
+        }
+        catch (UnloginException $ex) {
+            mobileControl::outerr(errcode::ErrUnLogin,errcode::msg(errcode::ErrUnLogin),'','android');
+        }
+        catch (Exception $ex) {
+            mobileControl::outerr($ex->getCode(),$ex->getMessage(),'','android');
+            Log::record("run_looper exception catch code={$ex->getCode()} msg={$ex->getMessage()} trace={$ex->getTraceAsString()}",Log::ERR);
+        }
+        session::instance()->end();
+    }
+}