Compare commits

...
2 Commits
Author SHA1 Message Date
testadmin 510802551c fix: handle_b.js 路子珠修正(tab_baccarat 实际加载的JS)
根因:tab_b.html 加载 handle_b.js(不是 handle.js)
- 字段名 lucky_six → luck_six(匹配 Waybill 返回)
- 判断值 ==1 → >0(后端存 2/3 不是 1)
- 补加 dragon_seven/panda_eight
2026-05-02 01:11:29 +08:00
testadmin 231f6eff25 debug: waybill 返回数据 console.log 2026-05-02 01:02:22 +08:00
2 changed files with 19 additions and 8 deletions
+3
View File
@@ -1648,6 +1648,9 @@ function waybillFunc(){
data:data, data:data,
success:function(data){ success:function(data){
ludan = data; ludan = data;
if(data && data.waybill && data.waybill.showRoad){
console.log('[waybill debug] showRoad sample:', JSON.stringify(data.waybill.showRoad.slice(0,3)));
}
requestData(ludan); requestData(ludan);
} }
}); });
+16 -8
View File
@@ -1433,7 +1433,7 @@ function cutRoad(roadType,ctb,unit,roadData,cols,ask,askroad){
}else if(roadType=="bigeyeWay"){ }else if(roadType=="bigeyeWay"){
BigeyePath(ctb,unit,v.show_x-cut,v.show_y,v.result) BigeyePath(ctb,unit,v.show_x-cut,v.show_y,v.result)
}else if(roadType=="showWay"){ }else if(roadType=="showWay"){
SoloPath(ctb,unit,v.show_x-cut,v.show_y,v.result,v.pair,v.lucky_six) SoloPath(ctb,unit,v.show_x-cut,v.show_y,v.result,v.pair,v.luck_six||0,v.dragon_seven||0,v.panda_eight||0)
}else if(roadType=="bigWay"){ }else if(roadType=="bigWay"){
BigPath(ctb,unit,v.show_x-cut,v.show_y,v.result,v.tie_num,v.pair) BigPath(ctb,unit,v.show_x-cut,v.show_y,v.result,v.tie_num,v.pair)
}else if(roadType=="sanxingWay"){ }else if(roadType=="sanxingWay"){
@@ -1453,21 +1453,29 @@ function Font_tie(ctb,num,Font_x,Font_y,fontsize){
ctb.stroke(); ctb.stroke();
} }
} }
function SoloPath(ctb,unit,x,y,type,corners,luckySix){ function SoloPath(ctb,unit,x,y,type,corners,luck_six,dragon_seven,panda_eight){
ctb.beginPath(); ctb.beginPath();
ctb.lineWidth = 0.5; ctb.lineWidth = 0.5;
ctb.strokeStyle = "#000"; ctb.strokeStyle = "#000";
var radius=unit/2||0; var radius=unit/2||0;
if(type==1){ if(game_id==1 && luck_six > 0){
var color='#1a8c3a', fonts="6";
ctb.strokeStyle = "#2eb553";
ctb.lineWidth = 2;
}else if(game_id==1 && dragon_seven > 0){
var color='#d4a017', fonts="7";
ctb.strokeStyle = "#e6b822";
ctb.lineWidth = 2;
}else if(game_id==1 && panda_eight > 0){
var color='#1a6ed8', fonts="8";
ctb.strokeStyle = "#4a9af5";
ctb.lineWidth = 2;
}else if(type==1){
var color='#b20a00'; var color='#b20a00';
if(game_id == 2){ if(game_id == 2){
var fonts = lang.dragon; var fonts = lang.dragon;
}else{ }else{
if(luckySix == 1){ var fonts = lang.banker;
var fonts = 6;
}else{
var fonts = lang.banker;
}
} }
ctb.strokeStyle = "#ff4a68"; ctb.strokeStyle = "#ff4a68";
}else if(type==2){ }else if(type==2){