浏览代码

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

csx 2 年前
父节点
当前提交
cf3f5babfb
共有 3 个文件被更改,包括 30 次插入32 次删除
  1. 2 2
      conf/app.conf
  2. 21 23
      controllers/js/jsyb_controller.go
  3. 7 7
      main.go

+ 2 - 2
conf/app.conf 查看文件

@@ -45,7 +45,7 @@ appsecret="61ee2e6268497d5aa9de0b0187c39aea"
45 45
 
46 46
 
47 47
 [prod]
48
-org_id = 10138
48
+org_id = 10188
49 49
 mobile_token_expiration_second = 86400
50 50
 httpdomain = https://api.xt.kuyicloud.com
51 51
 sso_domain = https://sso.kuyicloud.com
@@ -54,7 +54,7 @@ front_end_domain = "https://xt.kuyicloud.com/#"
54 54
 #url  = "http://192.168.1.228:17001/szsi-portal/transData"
55 55
 #url = "http://192.168.1.88:6666/szsi-portal/transData"
56 56
 #gdyb_url = "http://igb.hsa.gdgov.cn/ebus/gdyb_api/prd/hsa/hgs/"
57
-gdyb_url="http://igb.hsa.gdgov.cn/ebus/sz_prd/hsa/hgs/"
57
+# gdyb_url="http://igb.hsa.gdgov.cn/ebus/sz_prd/hsa/hgs/"
58 58
 #内蒙古
59 59
 # gdyb_url = "http://10.38.23.105:8090/uif-hsaf-med-api/api/medical/service/"
60 60
 #韶关

+ 21 - 23
controllers/js/jsyb_controller.go 查看文件

@@ -722,11 +722,11 @@ func (c *JSybController) ReadCard() {
722 722
 		}
723 723
 		break
724 724
 	case "3": //电子凭证
725
-		pCardInfo, pBusiCardInfo := c.GetELeInfo(fixmedins_code, operator_id, operator)
726
-		fmt.Println(pCardInfo)
725
+		_, pBusiCardInfo := c.GetELeInfo(fixmedins_code, operator_id, operator)
726
+		//fmt.Println(pCardInfo)
727 727
 		fmt.Println(pBusiCardInfo)
728 728
 		pBusiCardInfo = Remove0000(pBusiCardInfo)
729
-		pCardInfo = Remove0000(pCardInfo)
729
+		//pCardInfo = Remove0000(pCardInfo)
730 730
 		var ele ELeData
731 731
 		err := json.Unmarshal([]byte(pBusiCardInfo), &ele)
732 732
 		if err != nil {
@@ -742,8 +742,8 @@ func (c *JSybController) ReadCard() {
742 742
 				fmt.Println(err)
743 743
 			}
744 744
 			c.ServeSuccessJSON(map[string]interface{}{
745
-				"status":         "0",
746
-				"card_info":      pCardInfo,
745
+				"status": "0",
746
+				//"card_info":      pCardInfo,
747 747
 				"busi_card_info": pBusiCardInfo,
748 748
 				"token":          token,
749 749
 				"result":         dat,
@@ -766,9 +766,7 @@ func (c *JSybController) TestGetBasBaseInit(code string, secret_key string, ak s
766 766
 	Iinit := DllDef.MustFindProc("Init")
767 767
 	//miConfig, _ := service.FindMedicalInsuranceInfo(c.GetAdminUserInfo().CurrentOrgId)
768 768
 	str := make([]byte, 2048)
769
-
770 769
 	inputData := make(map[string]interface{})
771
-
772 770
 	inputData["IP"] = "10.72.3.87"
773 771
 	inputData["PORT"] = "8086"
774 772
 	inputData["TIMEOUT"] = "180"
@@ -829,32 +827,32 @@ func (c *JSybController) GetELeInfo(code string, operator_id string, operator_na
829 827
 	//pCardInfo := make([]byte, 8192)
830 828
 	pBusiCardInfo := make([]byte, 8192)
831 829
 
832
-	data := make(map[string]interface{})
830
+	//data := make(map[string]interface{})
833 831
 	//pData := make(map[string]interface{})
834 832
 
835
-	inputData := make(map[string]interface{})
836
-	inputData["orgId"] = code
837
-	inputData["businessType"] = "01101"
838
-	inputData["operatorId"] = operator_id
839
-	inputData["operatorName"] = operator_name
840
-	inputData["officeId"] = "001"
841
-	inputData["officeName"] = "血透室"
842
-
843
-	data["data"] = inputData
844
-	data["transType"] = "ec.query"
845
-	data["orgId"] = code
846
-	bytesData, _ := json.Marshal(data)
833
+	//inputData := make(map[string]interface{})
834
+	//inputData["orgId"] = code
835
+	//inputData["businessType"] = "01101"
836
+	//inputData["operatorId"] = operator_id
837
+	//inputData["operatorName"] = operator_name
838
+	//inputData["officeId"] = "001"
839
+	//inputData["officeName"] = "血透室"
840
+
841
+	//data["data"] = inputData
842
+	//data["transType"] = "ec.query"
843
+	//data["orgId"] = code
844
+	//bytesData, _ := json.Marshal(data)
847 845
 	//pCardInfo = bytesData
848 846
 	ret2, _, _ := readCard.Call((uintptr)(unsafe.Pointer(&pBusiCardInfo[0])))
849 847
 	fmt.Println(ret2)
850
-	fmt.Println(DeleteExtraSpace(string(bytesData)))
848
+	//fmt.Println(DeleteExtraSpace(string(bytesData)))
851 849
 	fmt.Println(DeleteExtraSpace(string(pBusiCardInfo)))
852
-	fmt.Println(":", ConvertToString(DeleteExtraSpace(string(bytesData)), "gbk", "utf-8"))
850
+	//fmt.Println(":", ConvertToString(DeleteExtraSpace(string(bytesData)), "gbk", "utf-8"))
853 851
 	fmt.Println(":", ConvertToString(DeleteExtraSpace(string(pBusiCardInfo)), "gbk", "utf-8"))
854 852
 	if ret2 != 0 {
855 853
 		return "", ""
856 854
 	}
857
-	return DeleteExtraSpace(string(bytesData)), DeleteExtraSpace(string(pBusiCardInfo))
855
+	return DeleteExtraSpace(""), DeleteExtraSpace(string(pBusiCardInfo))
858 856
 }
859 857
 
860 858
 func IntPtr(n int) uintptr {

+ 7 - 7
main.go 查看文件

@@ -5,7 +5,7 @@ import (
5 5
 	"fmt"
6 6
 	"gdyb/models"
7 7
 	_ "gdyb/routers"
8
-	"gdyb/service"
8
+	//"gdyb/service"
9 9
 	"github.com/astaxie/beego"
10 10
 	"github.com/qiniu/api.v7/auth/qbox"
11 11
 	"github.com/qiniu/api.v7/storage"
@@ -15,12 +15,12 @@ import (
15 15
 )
16 16
 
17 17
 func init() {
18
-	service.ConnectDB()
19
-	org_id, _ := beego.AppConfig.Int64("org_id")
20
-
21
-	miConfig, _ := service.FindMedicalInsuranceInfo(org_id)
22
-	CreateLog(miConfig)
23
-	UploadLog(miConfig)
18
+	//service.ConnectDB()
19
+	//org_id, _ := beego.AppConfig.Int64("org_id")
20
+	//
21
+	//miConfig, _ := service.FindMedicalInsuranceInfo(org_id)
22
+	//CreateLog(miConfig)
23
+	//UploadLog(miConfig)
24 24
 
25 25
 	//UploadSettleList(org_id)
26 26
 }