|
@@ -150,7 +150,7 @@ layui.use(['form','jquery'], function(){
|
|
|
break;
|
|
|
case 'answer':
|
|
|
console.log(data);
|
|
|
- if(data.uid == $("#uid").val()){
|
|
|
+ if(data.user_id == $("#uid").val()){
|
|
|
var score = parseInt($("#py1_score").html());
|
|
|
if(data.is_true == 1){
|
|
|
$("#py1_score").html(score+1);
|
|
@@ -165,7 +165,7 @@ layui.use(['form','jquery'], function(){
|
|
|
$("#py2_score").html(score+1);
|
|
|
}
|
|
|
}
|
|
|
- if(data.next == 1){
|
|
|
+
|
|
|
if(data.is_end == 1){
|
|
|
//结算
|
|
|
$(".g-doc .g-inner").addClass("end");
|
|
@@ -198,7 +198,7 @@ layui.use(['form','jquery'], function(){
|
|
|
return false;
|
|
|
}
|
|
|
getQuestion(room_id, cur_question);
|
|
|
- }
|
|
|
+
|
|
|
//设置player值
|
|
|
break;
|
|
|
// 当mvc框架调用GatewayClient发消息时直接alert出来
|