|
@@ -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);
|