|
@@ -230,8 +230,8 @@ class MeasureDataHelper {
|
|
|
static Future<MeasureApplicationDTO?> getMeasureApplication(
|
|
|
MeasureModeSelection args) async {
|
|
|
try {
|
|
|
- final result =
|
|
|
- await RPCBridge.ins.rpc.remedical.getMeasureApplicationAsync(
|
|
|
+ return await RPCBridge.ins.rpc.remoteUltrasound
|
|
|
+ .vitalGetMeasureApplicationAsync(
|
|
|
GetMeasureApplicationRequest(
|
|
|
token: RPCBridge.ins.userToken,
|
|
|
applicationName: args.applicationName,
|
|
@@ -239,7 +239,6 @@ class MeasureDataHelper {
|
|
|
measureModes: args.measureModes,
|
|
|
),
|
|
|
);
|
|
|
- return result;
|
|
|
} catch (e) {
|
|
|
print(e);
|
|
|
logger.e('MeasureHomeController getMeasureApplication ex: ', e);
|
|
@@ -284,8 +283,8 @@ class MeasureDataHelper {
|
|
|
|
|
|
/// 获取样式
|
|
|
static Future<MeasureSystemSettingDTO> getMeasureSystemSettingAsync() async {
|
|
|
- final result =
|
|
|
- await RPCBridge.ins.rpc.remedical.getMeasureSystemSettingAsync(
|
|
|
+ final result = await RPCBridge.ins.rpc.remoteUltrasound
|
|
|
+ .vitalGetMeasureSystemSettingAsync(
|
|
|
GetMeasureSystemSettingRequest(
|
|
|
token: RPCBridge.ins.userToken,
|
|
|
),
|
|
@@ -316,17 +315,29 @@ class MeasureDataHelper {
|
|
|
static Future<CommentItemResultDTO?> getCommentsByApplicationAsync(
|
|
|
String applicationName, String categoryName) async {
|
|
|
try {
|
|
|
- final result =
|
|
|
- await RPCBridge.ins.rpc.remedical.getCommentsByApplicationAsync(
|
|
|
- GetCommentsByApplicationRequest(
|
|
|
- token: RPCBridge.ins.userToken,
|
|
|
- applicationName: applicationName,
|
|
|
- categoryName: categoryName,
|
|
|
- languageCode: i18nBook.locale.toCodeString('-'),
|
|
|
- // Store.app.systemLocale.languageCode.toLowerCase(),
|
|
|
- ),
|
|
|
- );
|
|
|
- return result;
|
|
|
+ if (RPCBridge.ins.source == VidImageSource.RemoteUS) {
|
|
|
+ final result = await RPCBridge.ins.rpc.remoteUltrasound
|
|
|
+ .vitalGetCommentsByApplicationAsync(
|
|
|
+ GetCommentsByApplicationRequest(
|
|
|
+ token: RPCBridge.ins.userToken,
|
|
|
+ applicationName: applicationName,
|
|
|
+ categoryName: categoryName,
|
|
|
+ languageCode: i18nBook.locale.toCodeString('-'),
|
|
|
+ ),
|
|
|
+ );
|
|
|
+ return result;
|
|
|
+ } else {
|
|
|
+ final result =
|
|
|
+ await RPCBridge.ins.rpc.remedical.getCommentsByApplicationAsync(
|
|
|
+ GetCommentsByApplicationRequest(
|
|
|
+ token: RPCBridge.ins.userToken,
|
|
|
+ applicationName: applicationName,
|
|
|
+ categoryName: categoryName,
|
|
|
+ languageCode: i18nBook.locale.toCodeString('-'),
|
|
|
+ ),
|
|
|
+ );
|
|
|
+ return result;
|
|
|
+ }
|
|
|
} catch (e) {
|
|
|
logger.e('MeasureHomeController getCommentsByApplicationAsync ex: ', e);
|
|
|
return null;
|