Browse Source

no message

DESKTOP-9JTA2JJ\HP 5 years ago
parent
commit
b1b477ade9
1 changed files with 3 additions and 3 deletions
  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);