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.js CHANGED
@@ -5061,6 +5061,11 @@ const getPoratlAppID = (isPortalAction, appVariables) => {
5061
5061
  }
5062
5062
  });
5063
5063
  }
5064
+ // 如果appVariables中也没有,则从window.appSdk.getAppId()获取
5065
+ // 这通常是因为在非门户应用中使用了门户相关的功能
5066
+ if (!portal_app_id) {
5067
+ portal_app_id = window.appSdk.getAppId();
5068
+ }
5064
5069
  }
5065
5070
  return portal_app_id;
5066
5071
  };
@@ -5319,7 +5324,12 @@ const getMappingAppInfoByID = async (appID, groupID) => {
5319
5324
  * @param id 组织ID
5320
5325
  *
5321
5326
  */
5322
- const queryOfficeInfosById = async queryData => {
5327
+ const queryOfficeInfosById = async officeID => {
5328
+ let queryData = {
5329
+ "param": {
5330
+ "id": officeID
5331
+ }
5332
+ };
5323
5333
  let resultData = await request.post(`/dataservice/rest/orchestration/getOfficeInfosByID`, queryData);
5324
5334
  let groupDptData = resultData.data.officeData;
5325
5335
  return groupDptData;