审核规避词+敏感词skill

This commit is contained in:
Yeomai committed 2026-10-01 11:43:07 +08:00
1 parent a9552b3d1a
commit f05a11f0f3
14 files changed
+79 -29

No files matched your search

+2 -2
View File
@@ -278,7 +278,7 @@ DomHandler.prototype.onopentag = function(name, attrs) {
attrs.source = [];
if (attrs.src) attrs.source.push(attrs.src);
if (!attrs.controls && !attrs.autoplay)
console.warn('存在没有controls属性的' + name + '标签,可能导致无法播放', attrs);
console.warn(name + ' 标签缺少 controls 属性,可能无法正常使用', attrs);
this._bubbling();
break;
case 'source':
@@ -322,4 +322,4 @@ DomHandler.prototype.onclosetag = function(name) {
siblings.pop();
}
};
module.exports = DomHandler;
module.exports = DomHandler;
+2 -2
View File
@@ -53,7 +53,7 @@ Component({
composed: true
});
},
//内部方法:加载视频
//内部方法:点击封面后加载真实内容
_loadVideo(e) {
this.data.controls[e.currentTarget.dataset.id] = {
play: true,
@@ -64,4 +64,4 @@ Component({
})
},
}
})
})
+2 -2
View File
@@ -10,7 +10,7 @@
<rich-text wx:else style="display:inline-block" nodes="{{[item]}}"></rich-text>
</block>
<text wx:elif="{{item.name=='br'}}">\n</text>
<!--视频-->
<!--浏览内容-->
<block wx:elif="{{item.name=='video'}}">
<view wx:if="{{item.attrs.id>'video3'&&!controls[item.attrs.id].play}}" class="video" style="{{item.attrs.style+(item.attrs.width?(';width:'+item.attrs.width):'')+(item.attrs.height?('height:'+item.attrs.height):'')}}" data-id="{{item.attrs.id}}" bindtap="_loadVideo">
<view class="video-triangle" />
@@ -31,4 +31,4 @@
</navigator>
<!--继续递归-->
<trees wx:else id="node" class="{{item.name}}" style="{{item.attrs.style}}" nodes="{{item.children}}" controls="{{controls}}" />
</block>
</block>