@imedx/ics-chromely-plugin-imedx
Advanced tools
Comparing version 0.0.0-beta.7 to 0.0.0-beta.8
@@ -27,2 +27,6 @@ import icsChromelyRequest from '@icreate/ics-chromely-js-sdk'; | ||
}; | ||
IMedxHelper.use = function (_a) { | ||
var hbRequest = _a.hbRequest; | ||
this.HBRequest = hbRequest; | ||
}; | ||
/** | ||
@@ -71,4 +75,6 @@ * @description: 获取本地时间 | ||
else { | ||
// TODO 调用 hb-basic-js-sdk Api hbbasic/user/list/sign | ||
return Promise.resolve(''); | ||
// TODO 调用 hb-basic-js-sdk Api hbbasic/user/get/sign | ||
return this.HBRequest.api.getUserSign({ id: staffId }).then(function (res) { | ||
return res.data; | ||
}); | ||
} | ||
@@ -88,4 +94,11 @@ }; | ||
else { | ||
// TODO 调用 hb-basic-js-sdk Api hbbasic/org/list/logo | ||
return Promise.resolve(''); | ||
// TODO 调用 hb-basic-js-sdk Api hbbasic/org/get/logo | ||
return this.HBRequest.api.getOrgLogo({ id: orgId }).then(function (res) { | ||
if (type === LogoType.oblong) { | ||
return Promise.resolve(res.data.oblongLogo); | ||
} | ||
else { | ||
return Promise.resolve(res.data.squareLogo); | ||
} | ||
}); | ||
} | ||
@@ -92,0 +105,0 @@ }; |
@@ -35,2 +35,6 @@ (function (global, factory) { | ||
}; | ||
IMedxHelper.use = function (_a) { | ||
var hbRequest = _a.hbRequest; | ||
this.HBRequest = hbRequest; | ||
}; | ||
/** | ||
@@ -79,4 +83,6 @@ * @description: 获取本地时间 | ||
else { | ||
// TODO 调用 hb-basic-js-sdk Api hbbasic/user/list/sign | ||
return Promise.resolve(''); | ||
// TODO 调用 hb-basic-js-sdk Api hbbasic/user/get/sign | ||
return this.HBRequest.api.getUserSign({ id: staffId }).then(function (res) { | ||
return res.data; | ||
}); | ||
} | ||
@@ -96,4 +102,11 @@ }; | ||
else { | ||
// TODO 调用 hb-basic-js-sdk Api hbbasic/org/list/logo | ||
return Promise.resolve(''); | ||
// TODO 调用 hb-basic-js-sdk Api hbbasic/org/get/logo | ||
return this.HBRequest.api.getOrgLogo({ id: orgId }).then(function (res) { | ||
if (type === exports.LogoType.oblong) { | ||
return Promise.resolve(res.data.oblongLogo); | ||
} | ||
else { | ||
return Promise.resolve(res.data.squareLogo); | ||
} | ||
}); | ||
} | ||
@@ -100,0 +113,0 @@ }; |
@@ -23,2 +23,6 @@ "use strict"; | ||
}; | ||
IMedxHelper.use = function (_a) { | ||
var hbRequest = _a.hbRequest; | ||
this.HBRequest = hbRequest; | ||
}; | ||
/** | ||
@@ -67,4 +71,6 @@ * @description: 获取本地时间 | ||
else { | ||
// TODO 调用 hb-basic-js-sdk Api hbbasic/user/list/sign | ||
return Promise.resolve(''); | ||
// TODO 调用 hb-basic-js-sdk Api hbbasic/user/get/sign | ||
return this.HBRequest.api.getUserSign({ id: staffId }).then(function (res) { | ||
return res.data; | ||
}); | ||
} | ||
@@ -84,4 +90,11 @@ }; | ||
else { | ||
// TODO 调用 hb-basic-js-sdk Api hbbasic/org/list/logo | ||
return Promise.resolve(''); | ||
// TODO 调用 hb-basic-js-sdk Api hbbasic/org/get/logo | ||
return this.HBRequest.api.getOrgLogo({ id: orgId }).then(function (res) { | ||
if (type === interfaces_1.LogoType.oblong) { | ||
return Promise.resolve(res.data.oblongLogo); | ||
} | ||
else { | ||
return Promise.resolve(res.data.squareLogo); | ||
} | ||
}); | ||
} | ||
@@ -88,0 +101,0 @@ }; |
@@ -6,2 +6,9 @@ import { LogoType } from '../interfaces/interfaces'; | ||
/** | ||
* 传过来的axios实例 | ||
*/ | ||
private static HBRequest; | ||
static use({ hbRequest }: { | ||
hbRequest: any; | ||
}): void; | ||
/** | ||
* @description: 获取本地时间 | ||
@@ -8,0 +15,0 @@ */ |
{ | ||
"name": "@imedx/ics-chromely-plugin-imedx", | ||
"version": "0.0.0-beta.7", | ||
"version": "0.0.0-beta.8", | ||
"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
39110
410