Skip to content
This repository has been archived by the owner on Jul 8, 2024. It is now read-only.

Commit

Permalink
新增海阔redirect:false用法
Browse files Browse the repository at this point in the history
  • Loading branch information
hjdhnx committed Apr 10, 2024
1 parent f60627d commit ae02ade
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
5 changes: 4 additions & 1 deletion libs/drpy.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ function pre(){
}

let rule = {};
const VERSION = 'drpy1 3.9.49beta2 20231122';
const VERSION = 'drpy1 3.9.49beta36 202400410';
/** 已知问题记录
* 1.影魔的jinjia2引擎不支持 {{fl}}对象直接渲染 (有能力解决的话尽量解决下,支持对象直接渲染字符串转义,如果加了|safe就不转义)[影魔牛逼,最新的文件发现这问题已经解决了]
* Array.prototype.append = Array.prototype.push; 这种js执行后有毛病,for in 循环列表会把属性给打印出来 (这个大毛病需要重点排除一下)
Expand Down Expand Up @@ -1082,6 +1082,9 @@ function request(url,obj,ocr_flag){
obj.buffer = 2;
delete obj.toBase64
}
if(obj.redirect===false){
obj.redirect = 0;
}
console.log(JSON.stringify(obj.headers));
// console.log('request:'+url+' obj:'+JSON.stringify(obj));
console.log('request:'+url+`|method:${obj.method||'GET'}|body:${obj.body||''}`);
Expand Down
2 changes: 1 addition & 1 deletion libs/drpy.min.js

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion libs/drpy2.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ function pre(){

let rule = {};
let vercode = typeof(pdfl) ==='function'?'drpy2.1':'drpy2';
const VERSION = vercode+' 3.9.49beta2 20231122';
const VERSION = vercode+' 3.9.49beta36 202400410';
/** 已知问题记录
* 1.影魔的jinjia2引擎不支持 {{fl}}对象直接渲染 (有能力解决的话尽量解决下,支持对象直接渲染字符串转义,如果加了|safe就不转义)[影魔牛逼,最新的文件发现这问题已经解决了]
* Array.prototype.append = Array.prototype.push; 这种js执行后有毛病,for in 循环列表会把属性给打印出来 (这个大毛病需要重点排除一下)
Expand Down Expand Up @@ -1009,6 +1009,9 @@ function request(url,obj,ocr_flag){
obj.buffer = 2;
delete obj.toBase64
}
if(obj.redirect===false){
obj.redirect = 0;
}
console.log(JSON.stringify(obj.headers));
// console.log('request:'+url+' obj:'+JSON.stringify(obj));
console.log('request:'+url+`|method:${obj.method||'GET'}|body:${obj.body||''}`);
Expand Down
2 changes: 1 addition & 1 deletion libs/drpy2.min.js

Large diffs are not rendered by default.

0 comments on commit ae02ade

Please sign in to comment.