uepay-ops2 4.0.8 → 4.0.9
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/lib/components/client.js +8 -2
- package/package.json +1 -1
package/lib/components/client.js
CHANGED
|
@@ -21,7 +21,8 @@ var _cookie = _interopRequireDefault(require("cookie"));
|
|
|
21
21
|
|
|
22
22
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
23
23
|
|
|
24
|
-
const MAX_AGE = 60 * 60 * 24 * 7
|
|
24
|
+
const MAX_AGE = 60 * 60 * 24 * 7,
|
|
25
|
+
WITHOUT_FRAME = '/sovereign'; //TODO 框架配置化
|
|
25
26
|
|
|
26
27
|
class UePayApp extends _app.default {
|
|
27
28
|
static async getInitialProps(_ref) {
|
|
@@ -70,6 +71,10 @@ class UePayApp extends _app.default {
|
|
|
70
71
|
pageProps.opt = query.opt;
|
|
71
72
|
}
|
|
72
73
|
|
|
74
|
+
if (router && router.route && router.route.startsWith(WITHOUT_FRAME)) {
|
|
75
|
+
pageProps._frameCommon_isWithoutFrame_ = true;
|
|
76
|
+
}
|
|
77
|
+
|
|
73
78
|
return {
|
|
74
79
|
pageProps
|
|
75
80
|
};
|
|
@@ -80,6 +85,7 @@ class UePayApp extends _app.default {
|
|
|
80
85
|
Component,
|
|
81
86
|
pageProps
|
|
82
87
|
} = this.props;
|
|
88
|
+
console.log(pageProps);
|
|
83
89
|
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_head.default, null, /*#__PURE__*/_react.default.createElement("meta", {
|
|
84
90
|
charSet: "utf-8"
|
|
85
91
|
}), /*#__PURE__*/_react.default.createElement("meta", {
|
|
@@ -88,7 +94,7 @@ class UePayApp extends _app.default {
|
|
|
88
94
|
}), /*#__PURE__*/_react.default.createElement("link", {
|
|
89
95
|
rel: "shortcut icon",
|
|
90
96
|
href: "https://storage.uepay.mo/statics/logo/favicon.ico"
|
|
91
|
-
}), /*#__PURE__*/_react.default.createElement("title", null, (0, _ctx.getTitleCn)())), /*#__PURE__*/_react.default.createElement(_application.default, {
|
|
97
|
+
}), /*#__PURE__*/_react.default.createElement("title", null, (0, _ctx.getTitleCn)())), pageProps && pageProps._frameCommon_isWithoutFrame_ ? /*#__PURE__*/_react.default.createElement(Component, pageProps) : /*#__PURE__*/_react.default.createElement(_application.default, {
|
|
92
98
|
pageProps: pageProps,
|
|
93
99
|
Component: Component,
|
|
94
100
|
OptionLoader: OptionLoader
|