ソースを参照

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

csx 3 年 前
コミット
89a2d6f020
共有3 個のファイルを変更した11 個の追加7 個の削除を含む
  1. 1 1
      conf/app.conf
  2. 4 0
      controllers/sg/his_api_controller.go
  3. 6 6
      main.go

+ 1 - 1
conf/app.conf ファイルの表示

@@ -45,7 +45,7 @@ appsecret="61ee2e6268497d5aa9de0b0187c39aea"
45 45
 
46 46
 
47 47
 [prod]
48
-org_id = 10188
48
+org_id = 10217
49 49
 mobile_token_expiration_second = 86400
50 50
 httpdomain = https://api.xt.kuyicloud.com
51 51
 sso_domain = https://sso.kuyicloud.com

+ 4 - 0
controllers/sg/his_api_controller.go ファイルの表示

@@ -423,6 +423,10 @@ func (c *HisApiController) ReadCard() {
423 423
 			var status string
424 424
 			status = respJSON["data"].(map[string]interface{})["status"].(string)
425 425
 			card_type := respJSON["data"].(map[string]interface{})["type"].(string)
426
+			//console.log()
427
+			fmt.Println("type===")
428
+
429
+			fmt.Println(card_type)
426 430
 
427 431
 			var token string
428 432
 			var res ResultTwo           //1101结果

+ 6 - 6
main.go ファイルの表示

@@ -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
 }