isdata-customer-sdk 0.1.20 → 0.1.22

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.umd.js CHANGED
@@ -5071,6 +5071,11 @@ const getPoratlAppID = (isPortalAction, appVariables) => {
5071
5071
  }
5072
5072
  });
5073
5073
  }
5074
+ // 如果appVariables中也没有,则从window.appSdk.getAppId()获取
5075
+ // 这通常是因为在非门户应用中使用了门户相关的功能
5076
+ if (!portal_app_id) {
5077
+ portal_app_id = window.appSdk.getAppId();
5078
+ }
5074
5079
  }
5075
5080
  return portal_app_id;
5076
5081
  };
@@ -5329,7 +5334,12 @@ const getMappingAppInfoByID = async (appID, groupID) => {
5329
5334
  * @param id 组织ID
5330
5335
  *
5331
5336
  */
5332
- const queryOfficeInfosById = async queryData => {
5337
+ const queryOfficeInfosById = async officeID => {
5338
+ let queryData = {
5339
+ "param": {
5340
+ "id": officeID
5341
+ }
5342
+ };
5333
5343
  let resultData = await request.post(`/dataservice/rest/orchestration/getOfficeInfosByID`, queryData);
5334
5344
  let groupDptData = resultData.data.officeData;
5335
5345
  return groupDptData;