csx 4 år sedan
förälder
incheckning
d58dd34fa6
1 ändrade filer med 2 tillägg och 6 borttagningar
  1. 2 6
      controllers/his_api_controller.go

+ 2 - 6
controllers/his_api_controller.go Visa fil

@@ -25,12 +25,6 @@ import (
25 25
 	"unsafe"
26 26
 )
27 27
 
28
-var r int
29
-
30
-func init() {
31
-	r = CardInit()
32
-}
33
-
34 28
 type HisApiController struct {
35 29
 	BaseAuthAPIController
36 30
 }
@@ -144,6 +138,8 @@ func (c *HisApiController) Sscard() {
144 138
 	adminUser := c.GetAdminUserInfo()
145 139
 	miConfig, _ := service.FindMedicalInsuranceInfo(adminUser.CurrentOrgId)
146 140
 
141
+	r := CardInit()
142
+
147 143
 	if r == 0 {
148 144
 		switch id_card_type {
149 145
 		case 1: