Add files via upload
This commit is contained in:
+11
-1
@@ -41,7 +41,7 @@ function pre(){
|
||||
|
||||
let rule = {};
|
||||
let vercode = typeof(pdfl) ==='function'?'drpy2.1':'drpy2';
|
||||
const VERSION = vercode+' 3.9.41beta14 20230428';
|
||||
const VERSION = vercode+' 3.9.43beta1 20230607';
|
||||
/** 已知问题记录
|
||||
* 1.影魔的jinjia2引擎不支持 {{fl}}对象直接渲染 (有能力解决的话尽量解决下,支持对象直接渲染字符串转义,如果加了|safe就不转义)[影魔牛逼,最新的文件发现这问题已经解决了]
|
||||
* Array.prototype.append = Array.prototype.push; 这种js执行后有毛病,for in 循环列表会把属性给打印出来 (这个大毛病需要重点排除一下)
|
||||
@@ -84,6 +84,7 @@ const OCR_API = 'http://drpy.nokia.press:8028/ocr/drpy/text';//ocr在线识别
|
||||
if(typeof(MY_URL)==='undefined'){
|
||||
var MY_URL; // 全局注入变量,pd函数需要
|
||||
}
|
||||
var HOST;
|
||||
var RKEY; // 源的唯一标识
|
||||
var fetch;
|
||||
var print;
|
||||
@@ -2012,6 +2013,15 @@ function init(ext) {
|
||||
rule.cate_exclude = rule_cate_excludes.join('|');
|
||||
rule.tab_exclude = rule_tab_excludes.join('|');
|
||||
rule.host = (rule.host||'').rstrip('/');
|
||||
HOST = rule.host;
|
||||
if(rule.hostJs){
|
||||
try {
|
||||
eval(rule.hostJs);
|
||||
rule.host = HOST.rstrip('/');
|
||||
}catch (e) {
|
||||
console.log(`执行${rule.hostJs}获取host发生错误:`+e.message);
|
||||
}
|
||||
}
|
||||
rule.url = rule.url||'';
|
||||
rule.double = rule.double||false;
|
||||
rule.homeUrl = rule.homeUrl||'';
|
||||
|
||||
Reference in New Issue
Block a user