wgt-node-utils 1.2.20 → 1.2.21
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/dist/bundle.js +1 -1
- package/package.json +1 -1
- package/src/index.js +1 -1
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -808,7 +808,7 @@ class wgtNodeUtils {
|
|
|
808
808
|
* @param {object} req - 请求对象
|
|
809
809
|
* @returns {string} - 国家code
|
|
810
810
|
* */
|
|
811
|
-
getCloudFrontViewerCountry = (req) => {
|
|
811
|
+
getCloudFrontViewerCountry = (req, LANGUAGE_CODE_LIST) => {
|
|
812
812
|
// 从header中获取国家code
|
|
813
813
|
const countryCode = req.headers['cloudfront-viewer-country'];
|
|
814
814
|
// 从header中获取accept-language
|