Bladeren bron

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

csx 2 jaren geleden
bovenliggende
commit
d10770fd25
2 gewijzigde bestanden met toevoegingen van 8 en 10 verwijderingen
  1. 2 2
      controllers/js/jsyb_controller.go
  2. 6 8
      main.go

+ 2 - 2
controllers/js/jsyb_controller.go Bestand weergeven

@@ -826,7 +826,7 @@ func (c *JSybController) GetBasBaseInfo() (string, string) {
826 826
 
827 827
 func (c *JSybController) GetELeInfo(code string, operator_id string, operator_name string) (string, string) {
828 828
 	DllDef := syscall.MustLoadDLL("HeaSecReadInfo.dll")
829
-	readCard := DllDef.MustFindProc("EcQuery")
829
+	readCard := DllDef.MustFindProc("EcCardQuery")
830 830
 	fmt.Println(readCard)
831 831
 	fmt.Println("!!!!!")
832 832
 	//pCardInfo := make([]byte, 8192)
@@ -848,7 +848,7 @@ func (c *JSybController) GetELeInfo(code string, operator_id string, operator_na
848 848
 	data["orgId"] = code
849 849
 	bytesData, _ := json.Marshal(data)
850 850
 	//pCardInfo = bytesData
851
-	ret2, _, _ := readCard.Call((uintptr)(unsafe.Pointer(&bytesData[0])), (uintptr)(unsafe.Pointer(&pBusiCardInfo[0])))
851
+	ret2, _, _ := readCard.Call((uintptr)(unsafe.Pointer(&pBusiCardInfo[0])))
852 852
 	fmt.Println(ret2)
853 853
 	fmt.Println(DeleteExtraSpace(string(bytesData)))
854 854
 	fmt.Println(DeleteExtraSpace(string(pBusiCardInfo)))

+ 6 - 8
main.go Bestand weergeven

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