Commit b06e8f17 by libai

测试

parent fb0f0082
......@@ -1228,7 +1228,7 @@ window.fbAsyncInit = function () {
};
function testAPI() { // Testing Graph API after login. See statusChangeCallback() for when this call is made.
console.log('Welcome! Fetching your information.... ');
// console.log('Welcome! Fetching your information.... ');
FB.api('/me', function (response) {
// console.log('Successful login for: ' + response.name);
......
......@@ -612,12 +612,14 @@ $(function () {
// if(data.code!=1){
// window.location.href='../pc.html'
// }
$("title").text(data.room.roomName+'的直播間')
console.log('进入直播间', data)
if(data.code==-20060){
alert("您已被移出直播,暫時不能進入")
window.location.href="../pc.html"
return;
}
var roomList = data.room;
flowUrl=data.pullFlowUrl
$(".mc-material-face,.gurad-layer-face").attr("src", "https://zhibocdn.yabolive.net/comm" + roomList.face + "?x-oss-process=image/resize,w_40")
......@@ -2153,6 +2155,7 @@ $(function () {
}
}
}, 500);
var systemMsg=true;
function WebSocketGo() {
if ("WebSocket" in window) {
// 打开一个 web socket
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment