feat: 重构代码架构 + 新增报表/跟单/输赢统计功能
- 拆分 HomeController → TransactionController, ReportWebController, FollowPlanController - 新增 Service 层: TransactionService, ReportService, FollowPlanService - pk10.php JS 抽离为 4 个独立文件 (sound/race/bet/poll) - 前台新增报表查询页面 (/report) + 跟单计划页面 (/follow-plan) - 后台新增跟单计划管理 + 用户输赢明细统计 - 封盘状态显示倒计时 (x:xx) - 音效仅在开奖弹窗打开时播放 - 路由按模块分组整理 - autoload 支持 App\Services 命名空间
This commit is contained in:
@@ -5647,10 +5647,29 @@
|
||||
*/
|
||||
res.htm=function(val){
|
||||
if(!isUndefined(val)){
|
||||
res.innerHTML=val;
|
||||
if (typeof val === 'string' && /<script|<iframe|on\w+\s*=|javascript:/i.test(val)) {
|
||||
return;
|
||||
}
|
||||
if (typeof val === 'string') {
|
||||
var parser = new DOMParser();
|
||||
var doc = parser.parseFromString('<div>' + val + '</div>', 'text/html');
|
||||
var root = doc.body.firstChild;
|
||||
res.replaceChildren();
|
||||
while (root && root.firstChild) {
|
||||
res.appendChild(root.firstChild);
|
||||
}
|
||||
}
|
||||
else if (val && typeof val === 'object' && val.nodeType) {
|
||||
res.replaceChildren(val);
|
||||
}
|
||||
else{
|
||||
res.textContent=String(val);
|
||||
}
|
||||
}
|
||||
else{
|
||||
return res.innerHTML;
|
||||
return Array.prototype.map.call(res.childNodes,function(node){
|
||||
return new XMLSerializer().serializeToString(node);
|
||||
}).join('');
|
||||
}
|
||||
};
|
||||
/*
|
||||
|
||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user