Selaa lähdekoodia

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

csx 3 vuotta sitten
vanhempi
commit
3cdaf59edc
2 muutettua tiedostoa jossa 13 lisäystä ja 7 poistoa
  1. 6 1
      controllers/sg/his_api_controller.go
  2. 7 6
      main.go

+ 6 - 1
controllers/sg/his_api_controller.go Näytä tiedosto

@@ -5354,8 +5354,13 @@ func (c *HisApiController) GetPreUploadInfo() {
5354 5354
 			c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeDataException)
5355 5355
 			return
5356 5356
 		}
5357
+		fmt.Println("-------")
5358
+		fmt.Println(respJSON["data"])
5359
+		fmt.Println(respJSON["data"].(map[string]interface{})["time_stamp"])
5360
+		fmt.Println(respJSON["data"].(map[string]interface{})["time_stamp"].(float64))
5361
+		fmt.Println("-------")
5357 5362
 
5358
-		time_stamp = int64(respJSON["data"].(map[string]interface{})["time_stamp"].(float64))
5363
+		//time_stamp = int64(respJSON["data"].(map[string]interface{})["time_stamp"].(float64))
5359 5364
 
5360 5365
 		respJSON = respJSON["data"].(map[string]interface{})["pre"].(map[string]interface{})
5361 5366
 		userJSONBytes, _ := json.Marshal(respJSON)

+ 7 - 6
main.go Näytä tiedosto

@@ -4,7 +4,8 @@ import (
4 4
 	"context"
5 5
 	"fmt"
6 6
 	"gdyb/models"
7
-	//_ "gdyb/routers"
7
+	_ "gdyb/routers"
8
+	"gdyb/service"
8 9
 	"github.com/astaxie/beego"
9 10
 	"github.com/qiniu/api.v7/auth/qbox"
10 11
 	"github.com/qiniu/api.v7/storage"
@@ -14,11 +15,11 @@ import (
14 15
 )
15 16
 
16 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 24
 }
24 25
 func main() {