DESKTOP-9JTA2JJ\HP преди 5 години
родител
ревизия
b1b477ade9
променени са 1 файла, в които са добавени 3 реда и са изтрити 3 реда
  1. 3 3
      api/application/helpers/function_helper.php

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

@@ -423,9 +423,9 @@ function weather_translate_ru($code){
 }
 
 //输出json
-function json_result($code, $msg, $data = array()) {
-// 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);