Explorar el Código

Merge remote-tracking branch 'origin/master'

test_user hace 1 año
padre
commit
f2da8e090d
Se han modificado 2 ficheros con 15 adiciones y 13 borrados
  1. 6 6
      conf/app.conf
  2. 9 7
      main.go

+ 6 - 6
conf/app.conf Ver fichero

@@ -1,5 +1,5 @@
1 1
 appname = 血透
2
-httpport = 9533
2
+httpport = 9532
3 3
 runmode = prod
4 4
 
5 5
 
@@ -45,7 +45,7 @@ appsecret="61ee2e6268497d5aa9de0b0187c39aea"
45 45
 
46 46
 
47 47
 [prod]
48
-org_id = 10217
48
+org_id = 10088
49 49
 mobile_token_expiration_second = 86400
50 50
 httpdomain = https://api.xt.kuyicloud.com
51 51
 sso_domain = https://sso.kuyicloud.com
@@ -53,10 +53,10 @@ call_domain = https://hf.sgjyun.com
53 53
 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
-gdyb_url = "http://igb.hsa.gdgov.cn/ebus/gdyb_api/prd/hsa/hgs/"
56
+# gdyb_url = "http://igb.hsa.gdgov.cn/ebus/gdyb_api/prd/hsa/hgs/"
57 57
 #test
58 58
 # gdyb_url = http://10.97.240.206/ebus/gdyb_inf/poc/hsa/hgs/
59
-# gdyb_url="http://igb.hsa.gdgov.cn/ebus/sz_prd/hsa/hgs/"
59
+gdyb_url="http://igb.hsa.gdgov.cn/ebus/sz_prd/hsa/hgs/"
60 60
 #gdyb_url = "http://10.97.240.206/ebus/sztest_hosp/poc/hsa/hgs/"
61 61
 #内蒙古
62 62
 # http://tyjk.nm.hsip.gov.cn:8090/uif-hsaf-med-api/api/medical/service
@@ -66,11 +66,11 @@ gdyb_url = "http://igb.hsa.gdgov.cn/ebus/gdyb_api/prd/hsa/hgs/"
66 66
 #gdyb_paasid = "sg03_prd"
67 67
 # gdyb_paasid = "test_hosp"
68 68
 #江门
69
-gdyb_paasid = "jm_sc_yjyy"
69
+# gdyb_paasid = "jm_sc_yjyy"
70 70
 #珠海
71 71
 # gdyb_paasid="zh_prd_yrojyy"
72 72
 #深圳
73
-# gdyb_paasid = "sz_prd_yjyy"
73
+gdyb_paasid = "sz_prd_yjyy"
74 74
 #肇庆
75 75
 #gdyb_paasid = "zq_prd_yjyy"
76 76
 # gdyb_paasid = "sztest_hosp"

+ 9 - 7
main.go Ver fichero

@@ -6,10 +6,12 @@ import (
6 6
 
7 7
 	//"gdyb/models"
8 8
 	_ "gdyb/routers"
9
+	"gdyb/service"
10
+
9 11
 	//"github.com/qiniu/api.v7/auth/qbox"
10 12
 	//"github.com/qiniu/api.v7/storage"
11 13
 
12
-	//"github.com/qiniu/api.v7/auth/qbox"
14
+	//"github.com/qiniu/roapi.v7/auth/qbox"
13 15
 	//"github.com/qiniu/api.v7/storage"
14 16
 
15 17
 	//"gdyb/service"
@@ -19,14 +21,14 @@ import (
19 21
 )
20 22
 
21 23
 func init() {
22
-	//service.ConnectDB()
23
-	//org_id, _ := beego.AppConfig.Int64("org_id")
24
-	//miConfig, _ := service.FindMedicalInsuranceInfo(org_id)
24
+	service.ConnectDB()
25
+	org_id, _ := beego.AppConfig.Int64("org_id")
26
+	miConfig, _ := service.FindMedicalInsuranceInfo(org_id)
25 27
 	//CreateLog(miConfig)
26 28
 	//UploadLog(miConfig)
27
-	//if org_id == 10191 {
28
-	//	service.GetFjAuthorizationInfo(miConfig.Code)
29
-	//}
29
+	if org_id == 10191 {
30
+		service.GetFjAuthorizationInfo(miConfig.Code)
31
+	}
30 32
 }
31 33
 func main() {
32 34
 	beego.Run()