userKey)); console.log(userInfo) if(userInfo != null ) { if (userInfo.leftNum<1){ $('#playtip').show(); $('.player-box').html(''); } } }, error: function (err) { alert('获取用户id失败!'); } }) }); }