@imedx/ics-chromely-plugin-imedx
Advanced tools
Comparing version 0.0.0-beta.9 to 0.0.0-beta.10
@@ -74,5 +74,3 @@ import icsChromelyRequest from '@icreate/ics-chromely-js-sdk'; | ||
// TODO 调用 hb-basic-js-sdk Api hbbasic/user/get/sign | ||
return this.HBRequest.api.getUserSign({ id: staffId }).then(function (res) { | ||
return res.data; | ||
}); | ||
return this.HBRequest.api.getUserSign({ id: staffId }); | ||
} | ||
@@ -93,8 +91,8 @@ }; | ||
// TODO 调用 hb-basic-js-sdk Api hbbasic/org/get/logo | ||
return this.HBRequest.api.getOrgLogo({ id: orgId }).then(function (res) { | ||
return this.HBRequest.api.getOrgLogo({ id: orgId }).then(function (data) { | ||
if (type === LogoType.oblong) { | ||
return Promise.resolve(res.data.oblongLogo); | ||
return Promise.resolve(data === null || data === void 0 ? void 0 : data.oblongLogo); | ||
} | ||
else { | ||
return Promise.resolve(res.data.squareLogo); | ||
return Promise.resolve(data === null || data === void 0 ? void 0 : data.squareLogo); | ||
} | ||
@@ -101,0 +99,0 @@ }); |
@@ -82,5 +82,3 @@ (function (global, factory) { | ||
// TODO 调用 hb-basic-js-sdk Api hbbasic/user/get/sign | ||
return this.HBRequest.api.getUserSign({ id: staffId }).then(function (res) { | ||
return res.data; | ||
}); | ||
return this.HBRequest.api.getUserSign({ id: staffId }); | ||
} | ||
@@ -101,8 +99,8 @@ }; | ||
// TODO 调用 hb-basic-js-sdk Api hbbasic/org/get/logo | ||
return this.HBRequest.api.getOrgLogo({ id: orgId }).then(function (res) { | ||
return this.HBRequest.api.getOrgLogo({ id: orgId }).then(function (data) { | ||
if (type === exports.LogoType.oblong) { | ||
return Promise.resolve(res.data.oblongLogo); | ||
return Promise.resolve(data === null || data === void 0 ? void 0 : data.oblongLogo); | ||
} | ||
else { | ||
return Promise.resolve(res.data.squareLogo); | ||
return Promise.resolve(data === null || data === void 0 ? void 0 : data.squareLogo); | ||
} | ||
@@ -109,0 +107,0 @@ }); |
@@ -70,5 +70,3 @@ "use strict"; | ||
// TODO 调用 hb-basic-js-sdk Api hbbasic/user/get/sign | ||
return this.HBRequest.api.getUserSign({ id: staffId }).then(function (res) { | ||
return res.data; | ||
}); | ||
return this.HBRequest.api.getUserSign({ id: staffId }); | ||
} | ||
@@ -89,8 +87,8 @@ }; | ||
// TODO 调用 hb-basic-js-sdk Api hbbasic/org/get/logo | ||
return this.HBRequest.api.getOrgLogo({ id: orgId }).then(function (res) { | ||
return this.HBRequest.api.getOrgLogo({ id: orgId }).then(function (data) { | ||
if (type === interfaces_1.LogoType.oblong) { | ||
return Promise.resolve(res.data.oblongLogo); | ||
return Promise.resolve(data === null || data === void 0 ? void 0 : data.oblongLogo); | ||
} | ||
else { | ||
return Promise.resolve(res.data.squareLogo); | ||
return Promise.resolve(data === null || data === void 0 ? void 0 : data.squareLogo); | ||
} | ||
@@ -97,0 +95,0 @@ }); |
{ | ||
"name": "@imedx/ics-chromely-plugin-imedx", | ||
"version": "0.0.0-beta.9", | ||
"version": "0.0.0-beta.10", | ||
"description": "提供获取IMedx客户端本地信息,例如当前日期时间等", | ||
@@ -5,0 +5,0 @@ "keywords": [], |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
38747
399