ソースを参照

Merge branch 'master' of http://git.shengws.com/csx/gdyb

csx 2 年 前
コミット
aa580ecf41
共有2 個のファイルを変更した2 個の追加4 個の削除を含む
  1. 1 3
      controllers/js/jsyb_controller.go
  2. 1 1
      service/jsyb_service.go

+ 1 - 3
controllers/js/jsyb_controller.go ファイルの表示

@@ -792,6 +792,7 @@ func (c *JSybController) GetELeInfo(code string, operator_id string, operator_na
792 792
 	pBusiCardInfo := make([]byte, 8192)
793 793
 
794 794
 	data := make(map[string]interface{})
795
+	//pData := make(map[string]interface{})
795 796
 
796 797
 	inputData := make(map[string]interface{})
797 798
 	inputData["orgId"] = code
@@ -804,11 +805,8 @@ func (c *JSybController) GetELeInfo(code string, operator_id string, operator_na
804 805
 	data["data"] = inputData
805 806
 	data["transType"] = "ec.query"
806 807
 	data["orgId"] = code
807
-
808 808
 	bytesData, _ := json.Marshal(data)
809
-
810 809
 	pCardInfo = bytesData
811
-
812 810
 	ret2, _, _ := readCard.Call((uintptr)(unsafe.Pointer(&pCardInfo[0])), (uintptr)(unsafe.Pointer(&pBusiCardInfo[0])))
813 811
 	fmt.Println(ret2)
814 812
 	fmt.Println(DeleteExtraSpace(string(bytesData)))

+ 1 - 1
service/jsyb_service.go ファイルの表示

@@ -162,7 +162,7 @@ func Jsyb2201(psnNo string, insutype string, certNo string, org_name string, ope
162 162
 	if id_card_type == 1 {
163 163
 		inputData["mdtrt_cert_type"] = "03"                       // 就诊凭证类型
164 164
 		inputData["mdtrt_cert_no"] = certNo + "|" + verify_number // 就诊凭证编号
165
-	} else if id_card_type == 4 {
165
+	} else if id_card_type == 3 {
166 166
 		inputData["mdtrt_cert_type"] = "01"        // 就诊凭证类型
167 167
 		inputData["mdtrt_cert_no"] = verify_number // 就诊凭证编号
168 168
 	} else {