Sfoglia il codice sorgente

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

csx 3 anni fa
parent
commit
aef168a233
3 ha cambiato i file con 16 aggiunte e 8 eliminazioni
  1. 9 1
      controllers/js/jsyb_controller.go
  2. 1 1
      controllers/sg/his_api_controller.go
  3. 6 6
      main.go

+ 9 - 1
controllers/js/jsyb_controller.go Vedi File

@@ -12,6 +12,7 @@ import (
12 12
 	"github.com/axgle/mahonia"
13 13
 	"io/ioutil"
14 14
 	"regexp"
15
+	"strconv"
15 16
 	"strings"
16 17
 	"syscall"
17 18
 	"unsafe"
@@ -198,11 +199,18 @@ func (c *JSybController) PostFour() {
198 199
 
199 200
 	} else {
200 201
 
202
+	}
203
+
204
+	var dat3 int64
205
+	if err := json.Unmarshal([]byte(strconv.FormatInt(timeStamp, 10)), &dat3); err == nil {
206
+
207
+	} else {
208
+
201 209
 	}
202 210
 	c.ServeSuccessJSON(map[string]interface{}{
203 211
 		"pre":         dat,
204 212
 		"request_log": dat2,
205
-		"time_stamp":  timeStamp,
213
+		"time_stamp":  dat3,
206 214
 	})
207 215
 }
208 216
 

+ 1 - 1
controllers/sg/his_api_controller.go Vedi File

@@ -5357,7 +5357,7 @@ func (c *HisApiController) GetPreUploadInfo() {
5357 5357
 		fmt.Println("-------")
5358 5358
 		fmt.Println(respJSON["data"])
5359 5359
 		fmt.Println(respJSON["data"].(map[string]interface{})["time_stamp"])
5360
-		fmt.Println(respJSON["data"].(map[string]interface{})["time_stamp"].(float64))
5360
+		//fmt.Println(respJSON["data"].(map[string]interface{})["time_stamp"].(float64))
5361 5361
 		fmt.Println("-------")
5362 5362
 
5363 5363
 		//time_stamp = int64(respJSON["data"].(map[string]interface{})["time_stamp"].(float64))

+ 6 - 6
main.go Vedi File

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