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.
@@ -29573,6 +29573,7 @@ __webpack_require__.d(__webpack_exports__, {
29573
29573
  getAppPortalMenuDatas: function() { return /* reexport */ getAppPortalMenuDatas; },
29574
29574
  getAuthPic: function() { return /* reexport */ getAuthPic; },
29575
29575
  getChildrenOfficeInfosByID: function() { return /* reexport */ getChildrenOfficeInfosByID; },
29576
+ getClientIp: function() { return /* reexport */ getClientIp; },
29576
29577
  getCurrentAppID: function() { return /* reexport */ getCurrentAppID; },
29577
29578
  getCurrentUserPortalMapping: function() { return /* reexport */ getCurrentUserPortalMapping; },
29578
29579
  getCurrentUserPortalPageID: function() { return /* reexport */ getCurrentUserPortalPageID; },
@@ -34104,6 +34105,18 @@ const hasUrlParams = url => {
34104
34105
  return false;
34105
34106
  }
34106
34107
  };
34108
+
34109
+ /**
34110
+ * 获取客户端IP
34111
+ * @returns
34112
+ */
34113
+ const getClientIp = async () => {
34114
+ let serverIP = `/ext/getClientIp`;
34115
+ //
34116
+ let resultData = await request.post(serverIP);
34117
+ let ipAddress = resultData?.data?.clientIp;
34118
+ return ipAddress;
34119
+ };
34107
34120
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.iterator.some.js
34108
34121
  var es_iterator_some = __webpack_require__(3579);
34109
34122
  ;// ./src/api/iframe.js