Procházet zdrojové kódy

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

csx před 2 roky
rodič
revize
c97af81a90
1 změnil soubory, kde provedl 4 přidání a 1 odebrání
  1. 4 1
      controllers/sg/his_api_controller.go

+ 4 - 1
controllers/sg/his_api_controller.go Zobrazit soubor

@@ -9392,8 +9392,11 @@ func (c *HisApiController) GetCheckDetailAccount() {
9392 9392
 	endtime, _ := time.ParseInLocation(timeLayout+" 15:04:05", end_time+" 23:59:59", loc)
9393 9393
 	orders, _ := service.GetOrderByTimeTwo(startime.Unix(), endtime.Unix(), adminUser.CurrentOrgId)
9394 9394
 
9395
+	rand.Seed(time.Now().UnixNano())
9396
+
9397
+	num := rand.Intn(30000)
9395 9398
 	Mkdir(miConfig.OrgName)
9396
-	file := strconv.FormatInt(adminUser.CurrentOrgId, 10) + strconv.FormatInt(time.Now().Unix(), 10)
9399
+	file := strconv.FormatInt(int64(num), 10)
9397 9400
 	file_name := file + ".txt"
9398 9401
 	zip_name := file + ".zip"
9399 9402
 	zip_path := miConfig.OrgName + "/" + zip_name