yakuza0 2.22.39-beta.4 → 2.22.39-beta.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/template/http.plugin.js +8 -3
- package/utils/secret.js +1 -1
package/package.json
CHANGED
package/template/http.plugin.js
CHANGED
|
@@ -77,12 +77,17 @@ export default (ctx, inject) => {
|
|
|
77
77
|
// }
|
|
78
78
|
if (route.query.ticket || route.query.__isc) {
|
|
79
79
|
const __isc = route.query.ticket ? md5(route.query.ticket).substring(0, 6) : route.query.__isc
|
|
80
|
-
if (global.__http_bd__[__isc]) {
|
|
80
|
+
if (global.__http_bd__ && global.__http_bd__[__isc] && global.__http_bd__[__isc].ucResC) {
|
|
81
|
+
let defC = defaults.headers.Cookie || '';
|
|
82
|
+
if (defC && defC.length > 0) {
|
|
83
|
+
defC += '; '
|
|
84
|
+
}
|
|
81
85
|
if (typeof req.headers.Cookie === "string" && req.headers.Cookie.length > 0) {
|
|
82
|
-
|
|
86
|
+
defC = defC + global.__http_bd__[__isc].ucResC;
|
|
83
87
|
} else {
|
|
84
|
-
|
|
88
|
+
defC = defC + global.__http_bd__[__isc].ucResC;
|
|
85
89
|
}
|
|
90
|
+
defaults.headers.Cookie = defC;
|
|
86
91
|
}
|
|
87
92
|
}
|
|
88
93
|
}
|
package/utils/secret.js
CHANGED
|
@@ -62,7 +62,7 @@ var secret = {};
|
|
|
62
62
|
// import {asymmetric, getKey, symmetry} from "yakuza1/lib/encrypt/sm";
|
|
63
63
|
|
|
64
64
|
_yakuza.global.__yk_gu__ = _yakuza.global.__yk_gu__ || {};
|
|
65
|
-
_yakuza.global.__http_bd__ =
|
|
65
|
+
_yakuza.global.__http_bd__ = {};
|
|
66
66
|
|
|
67
67
|
// const allowHeaders = {
|
|
68
68
|
// 'user-agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.114 Safari/537.36',
|