isdata-customer-sdk 0.2.69 → 0.2.70
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/index.common.js +13 -0
- package/dist/index.common.js.map +1 -1
- package/dist/index.umd.js +13 -0
- package/dist/index.umd.js.map +1 -1
- package/dist/index.umd.min.js +1 -1
- package/dist/index.umd.min.js.map +1 -1
- package/package.json +1 -1
package/dist/index.umd.js
CHANGED
|
@@ -29591,6 +29591,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
29591
29591
|
getAppPortalMenuDatas: function() { return /* reexport */ getAppPortalMenuDatas; },
|
|
29592
29592
|
getAuthPic: function() { return /* reexport */ getAuthPic; },
|
|
29593
29593
|
getChildrenOfficeInfosByID: function() { return /* reexport */ getChildrenOfficeInfosByID; },
|
|
29594
|
+
getClientIp: function() { return /* reexport */ getClientIp; },
|
|
29594
29595
|
getCurrentAppID: function() { return /* reexport */ getCurrentAppID; },
|
|
29595
29596
|
getCurrentUserPortalMapping: function() { return /* reexport */ getCurrentUserPortalMapping; },
|
|
29596
29597
|
getCurrentUserPortalPageID: function() { return /* reexport */ getCurrentUserPortalPageID; },
|
|
@@ -34122,6 +34123,18 @@ const hasUrlParams = url => {
|
|
|
34122
34123
|
return false;
|
|
34123
34124
|
}
|
|
34124
34125
|
};
|
|
34126
|
+
|
|
34127
|
+
/**
|
|
34128
|
+
* 获取客户端IP
|
|
34129
|
+
* @returns
|
|
34130
|
+
*/
|
|
34131
|
+
const getClientIp = async () => {
|
|
34132
|
+
let serverIP = `/ext/getClientIp`;
|
|
34133
|
+
//
|
|
34134
|
+
let resultData = await request.post(serverIP);
|
|
34135
|
+
let ipAddress = resultData?.data?.clientIp;
|
|
34136
|
+
return ipAddress;
|
|
34137
|
+
};
|
|
34125
34138
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.iterator.some.js
|
|
34126
34139
|
var es_iterator_some = __webpack_require__(3579);
|
|
34127
34140
|
;// ./src/api/iframe.js
|