Browse Source

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

csx 3 years ago
parent
commit
d86fe52a36
2 changed files with 6 additions and 5 deletions
  1. 0 0
      conf/1
  2. 6 5
      main.go

+ 0 - 0
conf/1 View File


+ 6 - 5
main.go View File

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