encode JSON with JSON_PRETTY_PRINT

This commit is contained in:
printempw 2016-02-06 23:33:55 +08:00
parent a89fe5dc1b
commit a1fe95ae43

View File

@ -3,7 +3,7 @@
* @Author: printempw
* @Date: 2016-01-16 23:01:33
* @Last Modified by: prpr
* @Last Modified time: 2016-02-06 23:06:21
* @Last Modified time: 2016-02-06 23:32:13
*/
class User
@ -153,7 +153,7 @@ class User
$json['errno'] = 1;
$json['msg'] = "Non-existent user.";
}
return json_encode($json);
return json_encode($json, JSON_PRETTY_PRINT);
}
public function updateLastModified() {