|
@@ -1605,28 +1605,27 @@ func (c *HisApiController) Refund() {
|
1605
|
1605
|
return
|
1606
|
1606
|
}
|
1607
|
1607
|
|
1608
|
|
- api3 := "http://127.0.0.1:9532/" + "gdyb/three?psn_no=" + his.PsnNo +
|
1609
|
|
- "&mdtrt_id=" + his.Number + "&ipt_otp_no=" + his.IptOtpNo + "&doctor=" + patientPrescription.Doctor + "&org_name=" + miConfig.OrgName + "&fixmedins_code=" + miConfig.Code +
|
1610
|
|
- "&insuplc_admdvs=" + miConfig.InsuplcAdmdvs + "&mdtrtarea_admvs=" + miConfig.MdtrtareaAdmvs + "&secret_key=" + miConfig.SecretKey
|
1611
|
|
- resp3, requestErr3 := http.Get(api3)
|
1612
|
|
- if requestErr3 != nil {
|
1613
|
|
- c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeDataException)
|
1614
|
|
- return
|
1615
|
|
- }
|
1616
|
|
-
|
1617
|
|
- body3, ioErr3 := ioutil.ReadAll(resp3.Body)
|
1618
|
|
- if ioErr3 != nil {
|
1619
|
|
- utils.ErrorLog("接口返回数据读取失败: %v", ioErr3)
|
1620
|
|
- c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeDataException)
|
1621
|
|
- return
|
1622
|
|
- }
|
1623
|
|
- var respJSON3 map[string]interface{}
|
1624
|
|
- if err := json.Unmarshal([]byte(string(body3)), &respJSON3); err != nil {
|
1625
|
|
- utils.ErrorLog("接口返回数据解析JSON失败: %v", err)
|
1626
|
|
- c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeDataException)
|
1627
|
|
- return
|
1628
|
|
- }
|
1629
|
|
-
|
|
1608
|
+ //api3 := "http://127.0.0.1:9532/" + "gdyb/three?psn_no=" + his.PsnNo +
|
|
1609
|
+ // "&mdtrt_id=" + his.Number + "&ipt_otp_no=" + his.IptOtpNo + "&doctor=" + patientPrescription.Doctor + "&org_name=" + miConfig.OrgName + "&fixmedins_code=" + miConfig.Code +
|
|
1610
|
+ // "&insuplc_admdvs=" + miConfig.InsuplcAdmdvs + "&mdtrtarea_admvs=" + miConfig.MdtrtareaAdmvs + "&secret_key=" + miConfig.SecretKey
|
|
1611
|
+ //resp3, requestErr3 := http.Get(api3)
|
|
1612
|
+ //if requestErr3 != nil {
|
|
1613
|
+ // c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeDataException)
|
|
1614
|
+ // return
|
|
1615
|
+ //}
|
|
1616
|
+ //
|
|
1617
|
+ //body3, ioErr3 := ioutil.ReadAll(resp3.Body)
|
|
1618
|
+ //if ioErr3 != nil {
|
|
1619
|
+ // utils.ErrorLog("接口返回数据读取失败: %v", ioErr3)
|
|
1620
|
+ // c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeDataException)
|
|
1621
|
+ // return
|
|
1622
|
+ //}
|
|
1623
|
+ //var respJSON3 map[string]interface{}
|
|
1624
|
+ //if err := json.Unmarshal([]byte(string(body3)), &respJSON3); err != nil {
|
|
1625
|
+ // utils.ErrorLog("接口返回数据解析JSON失败: %v", err)
|
|
1626
|
+ // c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeDataException)
|
|
1627
|
+ // return
|
|
1628
|
+ //}
|
1630
|
1629
|
err := service.UpdataOrderStatus(order_id, number, adminUser.CurrentOrgId)
|
1631
|
1630
|
service.UpdataRegStatus(patient_id, recordDateTime, adminUser.CurrentOrgId)
|
1632
|
1631
|
|