From 1a64c0a5838af4c7eb620839af98ca7d03afabfa Mon Sep 17 00:00:00 2001 From: printempw Date: Wed, 3 Feb 2016 13:31:44 +0800 Subject: [PATCH] fixed shits --- includes/user.class.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/includes/user.class.php b/includes/user.class.php index 8678d44c..e12a0054 100644 --- a/includes/user.class.php +++ b/includes/user.class.php @@ -3,7 +3,7 @@ * @Author: printempw * @Date: 2016-01-16 23:01:33 * @Last Modified by: prpr - * @Last Modified time: 2016-02-03 13:25:55 + * @Last Modified time: 2016-02-03 13:31:10 */ class user @@ -110,9 +110,10 @@ class user public function getJsonProfile() { header('Content-type: application/json'); if ($this->is_registered) { + $json['player_name'] = $this->uname; $preference = $this->getPreference(); - $json['model'] = $preference; - $json['skin'] = $this->getTexture('skin'); + $json['model_preference'] = [$preference]; + $json['skins'][$preference] = $this->getTexture('skin'); $json['cape'] = $this->getTexture('cape'); } else { $json['errno'] = 1;