Browse Source

control.php

liax 9 years ago
parent
commit
5f3d94e09a
1 changed files with 12 additions and 0 deletions
  1. 12 0
      mobile/control/control.php

+ 12 - 0
mobile/control/control.php

@@ -56,6 +56,7 @@ class mobileControl
 
 
     protected function check_app_type()
     protected function check_app_type()
     {
     {
+
         Log::record(">>>>>> check_app_type={$_SERVER['HTTP_CLIENT_TYPE']}",Log::DEBUG);
         Log::record(">>>>>> check_app_type={$_SERVER['HTTP_CLIENT_TYPE']}",Log::DEBUG);
         $client = strtolower(trim($_SERVER['HTTP_CLIENT_TYPE']));
         $client = strtolower(trim($_SERVER['HTTP_CLIENT_TYPE']));
         $version = trim($_SERVER['HTTP_CLIENT_VERSION']);
         $version = trim($_SERVER['HTTP_CLIENT_VERSION']);
@@ -82,7 +83,12 @@ class mobileControl
     static public function outerr($code, $msg = '', $page = '')
     static public function outerr($code, $msg = '', $page = '')
     {
     {
         static $json_clients = array('android', 'ios', 'ajax');
         static $json_clients = array('android', 'ios', 'ajax');
+
+
+        Log::record(">>>>>> outerr, client_type={$_SESSION['client_type']}",Log::DEBUG);
+
         if (in_array($_SESSION['client_type'], $json_clients)) {
         if (in_array($_SESSION['client_type'], $json_clients)) {
+            Log::record(">>>>>> outerr, 1",Log::DEBUG);
             joutput_error($code, $msg);
             joutput_error($code, $msg);
         } else if ($_SESSION['client_type'] == 'wap') {
         } else if ($_SESSION['client_type'] == 'wap') {
             Tpl::output("error", $msg);
             Tpl::output("error", $msg);
@@ -90,7 +96,13 @@ class mobileControl
                 TPL::showpage($page);
                 TPL::showpage($page);
             }
             }
 
 
+            Log::record(">>>>>> outerr, 1",Log::DEBUG);
+            joutput_error($code, $msg);
+
         } else {
         } else {
+
+            Log::record(">>>>>> outerr, 1",Log::DEBUG);
+
             if (empty($msg)) {
             if (empty($msg)) {
                 $msg = errcode::msg($code);
                 $msg = errcode::msg($code);
             }
             }