fixed shits

This commit is contained in:
printempw 2016-02-03 13:31:44 +08:00
parent fc0b7c51ed
commit 1a64c0a583

View File

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