fixed shits
This commit is contained in:
parent
fc0b7c51ed
commit
1a64c0a583
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user