chenyc
2024-10-22 089e4045a94f8d7dde6c7981c25e60b4ee22cc40
gx12
1个文件已修改
33 ■■■■■ 已修改文件
app.js 33 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
app.js
@@ -139,7 +139,7 @@
                        if (rows.length > 0) {
                            const user = rows[0];
                            response = {
                                retCode: "1",
                                recode: 2001,
                                uinfo: {
                                    title: user.client_code,
                                    cardID: user.code,
@@ -151,8 +151,7 @@
                                    imgBaseData: '',
                                    remark: '患者人脸识别111'
                                },
                                dbinfo: {}, // 如果没有需要更新的数据库信息,可以保持空
                                msg: "success"
                                remsg: "success"
                            };
                            // res.json(response);
                        } else {
@@ -233,18 +232,24 @@
        if (rows.length > 0) {
            const user = rows[0];
            const response = {
                retCode: "1",
                result: {
                code: "1",
                result:[ {
                    patientId: user.code,
                    fullName: user.patient_name,
                    gender: user.patient_gender,
                    age: getAgeFromIdCard(user.patient_identity_no),
                    // phoneNum:user.
                    headimgurl: user.patient_avatar_icon,
                    imgBaseData: '',
                    remark: ''
                },
                dbinfo: {}, // 如果没有需要更新的数据库信息,可以保持空
                    phoneNum:user.patient_mobile,
                    address: user.patient_avatar_icon,
                    idType: user.patient_identity_type,
                    idNum: user.patient_identity_no,
                    height:'',
                    weight:'',
                    requestDoctor:'',
                    requestDept :"",
                    examDoctor:'',
                    examDept:"",
                    diagnosisDoctor:''
                }],
                msg: "success"
            };
            res.json(response);
@@ -268,6 +273,12 @@
  
  console
})
/**
 * PostCheckExam  病人信息及检测结果以JSON的形式回传至服务器
 */
app.post('/PostCheckExam',async(req,res)=>{
})
// 启动服务器
app.listen(port, async () => {
    console.log(`Server running at http://localhost:${port}/`);