DESKTOP-9JTA2JJ\HP il y a 5 ans
Parent
commit
f5f95e4deb
1 fichiers modifiés avec 3 ajouts et 2 suppressions
  1. 3 2
      api/application/helpers/function_helper.php

+ 3 - 2
api/application/helpers/function_helper.php

@@ -423,8 +423,9 @@ function weather_translate_ru($code){
 }
 
 //输出json
-function json_result($code, $msg, $data = array(),$resType == 0) {
-    $data = empty($data) && $resType == 0? new stdClass() : $data;
+function json_result($code, $msg, $data = array()) {
+// function json_result($code, $msg, $data = array(),$resType == 0) {
+    // $data = empty($data) && $resType == 0? new stdClass() : $data;
     $res = array('code' => $code,'msg' => $msg,'data' => $data);
     $CI =& get_instance();
     $clientId = $CI->input->post('clientId',true);