yakuza0 2.23.8 → 2.23.9-beta.3
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/redirect.plugin.js +24 -22
- package/utils/inclusive.js +1 -1
package/package.json
CHANGED
|
@@ -97,31 +97,33 @@ export default async (ctx, inject) => {
|
|
|
97
97
|
url += '#' + options.hash
|
|
98
98
|
}
|
|
99
99
|
|
|
100
|
-
if (
|
|
101
|
-
if (
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
if (isOuter || options.target !== '_self' || options.specs) {
|
|
110
|
-
if (_.startsWith(url, '/') && !_.startsWith(url, '//')) {
|
|
111
|
-
url = _.bothAddFix($yk.appConf.server.basePath, '/') + _.trimStart(url, '/')
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
window.open(url, options.target, options.specs)
|
|
100
|
+
if (typeof url === 'string') {
|
|
101
|
+
if (!checkServer()) {
|
|
102
|
+
if (typeof options.replace === 'boolean' && options.replace) {
|
|
103
|
+
window.location.replace(url);
|
|
104
|
+
// if (options.target === '_blank') {
|
|
105
|
+
// window.open(url, options.target, options.specs, options.replace)
|
|
106
|
+
// } else {
|
|
107
|
+
// window.location.replace(url)
|
|
108
|
+
// }
|
|
115
109
|
} else {
|
|
116
|
-
|
|
110
|
+
if (isOuter || options.target !== '_self' || options.specs) {
|
|
111
|
+
if (_.startsWith(url, '/') && !_.startsWith(url, '//')) {
|
|
112
|
+
url = _.bothAddFix($yk.appConf.server.basePath, '/') + _.trimStart(url, '/')
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
window.open(url, options.target, options.specs)
|
|
116
|
+
} else {
|
|
117
|
+
redirect(url)
|
|
118
|
+
}
|
|
117
119
|
}
|
|
120
|
+
} else {
|
|
121
|
+
const q = jsUrl('?', url) || {};
|
|
122
|
+
if (route.query.ticket || route.query.__isc) {
|
|
123
|
+
q.__isc = route.query.ticket ? md5(route.query.ticket).substring(0, 6) : route.query.__isc
|
|
124
|
+
}
|
|
125
|
+
redirect(url, q)
|
|
118
126
|
}
|
|
119
|
-
} else {
|
|
120
|
-
const q = jsUrl('?', url) || {};
|
|
121
|
-
if (route.query.ticket || route.query.__isc) {
|
|
122
|
-
q.__isc = route.query.ticket ? md5(route.query.ticket).substring(0, 6) : route.query.__isc
|
|
123
|
-
}
|
|
124
|
-
redirect(url, q)
|
|
125
127
|
}
|
|
126
128
|
}
|
|
127
129
|
|
package/utils/inclusive.js
CHANGED
|
@@ -1229,7 +1229,7 @@ var render = function () {
|
|
|
1229
1229
|
if (conf.inImage) {
|
|
1230
1230
|
scKeyStr = k + conf.imageKeyOrigin + yk0EnvStr;
|
|
1231
1231
|
}
|
|
1232
|
-
var scKey = (0, _yakuza.md5)(scKeyStr).substring(2, 8);
|
|
1232
|
+
var scKey = (0, _yakuza.md5)(_yakuza._.sortBy(scKeyStr.split('')).join('')).substring(2, 8);
|
|
1233
1233
|
conf.scKey = scKey;
|
|
1234
1234
|
|
|
1235
1235
|
var confStr = (0, _stringify2.default)(conf);
|