|
@@ -140,13 +140,9 @@ const executeReadCard = (cardtype) => {
|
|
code: res.data.success ? 200 : (res.data.code || 1001),
|
|
code: res.data.success ? 200 : (res.data.code || 1001),
|
|
type: 'sicard',
|
|
type: 'sicard',
|
|
// 关键:将江苏医保的结构化数据转换为泰和医院期望的字符串格式
|
|
// 关键:将江苏医保的结构化数据转换为泰和医院期望的字符串格式
|
|
- data: res.data.data ? (
|
|
|
|
- typeof res.data.data === 'string'
|
|
|
|
- ? res.data.data
|
|
|
|
- : JSON.stringify(res.data.data)
|
|
|
|
- ) : '',
|
|
|
|
- // 江苏医保没有sign字段,设为空字符串
|
|
|
|
- sign: '',
|
|
|
|
|
|
+ data: res.data.rawCardData,
|
|
|
|
+ // 江苏医保没有sign字段,但有函数执行成功时候,返回业务卡串信息,后续需要卡串的医保业务,请使用此卡串信息
|
|
|
|
+ sign: res.data.rawBusiData,
|
|
message: res.data.message || (res.data.success ? '读取社保卡成功。' : '读取社保卡失败。')
|
|
message: res.data.message || (res.data.success ? '读取社保卡成功。' : '读取社保卡失败。')
|
|
}
|
|
}
|
|
}
|
|
}
|