isdata-customer-sdk 0.2.69 → 0.2.71
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 +23 -0
- package/dist/index.common.js.map +1 -1
- package/dist/index.umd.js +23 -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
|
@@ -29578,6 +29578,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
29578
29578
|
createFileFromUrl: function() { return /* reexport */ createFileFromUrl; },
|
|
29579
29579
|
createRegistApply: function() { return /* reexport */ createRegistApply; },
|
|
29580
29580
|
destroyEventCenter: function() { return /* reexport */ destroyEventCenter; },
|
|
29581
|
+
doRestPost: function() { return /* reexport */ doRestPost; },
|
|
29581
29582
|
extractFilenameFromUrl: function() { return /* reexport */ extractFilenameFromUrl; },
|
|
29582
29583
|
extractNewItems: function() { return /* reexport */ extractNewItems; },
|
|
29583
29584
|
findClosestAncestorByClass: function() { return /* reexport */ findClosestAncestorByClass; },
|
|
@@ -29591,6 +29592,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
29591
29592
|
getAppPortalMenuDatas: function() { return /* reexport */ getAppPortalMenuDatas; },
|
|
29592
29593
|
getAuthPic: function() { return /* reexport */ getAuthPic; },
|
|
29593
29594
|
getChildrenOfficeInfosByID: function() { return /* reexport */ getChildrenOfficeInfosByID; },
|
|
29595
|
+
getClientIp: function() { return /* reexport */ getClientIp; },
|
|
29594
29596
|
getCurrentAppID: function() { return /* reexport */ getCurrentAppID; },
|
|
29595
29597
|
getCurrentUserPortalMapping: function() { return /* reexport */ getCurrentUserPortalMapping; },
|
|
29596
29598
|
getCurrentUserPortalPageID: function() { return /* reexport */ getCurrentUserPortalPageID; },
|
|
@@ -34122,6 +34124,27 @@ const hasUrlParams = url => {
|
|
|
34122
34124
|
return false;
|
|
34123
34125
|
}
|
|
34124
34126
|
};
|
|
34127
|
+
|
|
34128
|
+
/**
|
|
34129
|
+
* 获取客户端IP
|
|
34130
|
+
* @returns
|
|
34131
|
+
*/
|
|
34132
|
+
const getClientIp = async () => {
|
|
34133
|
+
let serverIP = `/ext/getClientIp`;
|
|
34134
|
+
//
|
|
34135
|
+
let resultData = await request.post(serverIP);
|
|
34136
|
+
let ipAddress = resultData?.data?.clientIp;
|
|
34137
|
+
return ipAddress;
|
|
34138
|
+
};
|
|
34139
|
+
|
|
34140
|
+
/**
|
|
34141
|
+
* 通用服务方法调用
|
|
34142
|
+
* @returns
|
|
34143
|
+
*/
|
|
34144
|
+
const doRestPost = async (url, param) => {
|
|
34145
|
+
let resultData = await request.post(url, param);
|
|
34146
|
+
return resultData;
|
|
34147
|
+
};
|
|
34125
34148
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.iterator.some.js
|
|
34126
34149
|
var es_iterator_some = __webpack_require__(3579);
|
|
34127
34150
|
;// ./src/api/iframe.js
|