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.common.js
CHANGED
|
@@ -29560,6 +29560,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
29560
29560
|
createFileFromUrl: function() { return /* reexport */ createFileFromUrl; },
|
|
29561
29561
|
createRegistApply: function() { return /* reexport */ createRegistApply; },
|
|
29562
29562
|
destroyEventCenter: function() { return /* reexport */ destroyEventCenter; },
|
|
29563
|
+
doRestPost: function() { return /* reexport */ doRestPost; },
|
|
29563
29564
|
extractFilenameFromUrl: function() { return /* reexport */ extractFilenameFromUrl; },
|
|
29564
29565
|
extractNewItems: function() { return /* reexport */ extractNewItems; },
|
|
29565
29566
|
findClosestAncestorByClass: function() { return /* reexport */ findClosestAncestorByClass; },
|
|
@@ -29573,6 +29574,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
29573
29574
|
getAppPortalMenuDatas: function() { return /* reexport */ getAppPortalMenuDatas; },
|
|
29574
29575
|
getAuthPic: function() { return /* reexport */ getAuthPic; },
|
|
29575
29576
|
getChildrenOfficeInfosByID: function() { return /* reexport */ getChildrenOfficeInfosByID; },
|
|
29577
|
+
getClientIp: function() { return /* reexport */ getClientIp; },
|
|
29576
29578
|
getCurrentAppID: function() { return /* reexport */ getCurrentAppID; },
|
|
29577
29579
|
getCurrentUserPortalMapping: function() { return /* reexport */ getCurrentUserPortalMapping; },
|
|
29578
29580
|
getCurrentUserPortalPageID: function() { return /* reexport */ getCurrentUserPortalPageID; },
|
|
@@ -34104,6 +34106,27 @@ const hasUrlParams = url => {
|
|
|
34104
34106
|
return false;
|
|
34105
34107
|
}
|
|
34106
34108
|
};
|
|
34109
|
+
|
|
34110
|
+
/**
|
|
34111
|
+
* 获取客户端IP
|
|
34112
|
+
* @returns
|
|
34113
|
+
*/
|
|
34114
|
+
const getClientIp = async () => {
|
|
34115
|
+
let serverIP = `/ext/getClientIp`;
|
|
34116
|
+
//
|
|
34117
|
+
let resultData = await request.post(serverIP);
|
|
34118
|
+
let ipAddress = resultData?.data?.clientIp;
|
|
34119
|
+
return ipAddress;
|
|
34120
|
+
};
|
|
34121
|
+
|
|
34122
|
+
/**
|
|
34123
|
+
* 通用服务方法调用
|
|
34124
|
+
* @returns
|
|
34125
|
+
*/
|
|
34126
|
+
const doRestPost = async (url, param) => {
|
|
34127
|
+
let resultData = await request.post(url, param);
|
|
34128
|
+
return resultData;
|
|
34129
|
+
};
|
|
34107
34130
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.iterator.some.js
|
|
34108
34131
|
var es_iterator_some = __webpack_require__(3579);
|
|
34109
34132
|
;// ./src/api/iframe.js
|