rdluck 4 years ago
parent
commit
e18a2a8115
2 changed files with 12 additions and 1 deletions
  1. 12 0
      controllers/bill.go
  2. 0 1
      controllers/user.go

+ 12 - 0
controllers/bill.go

@@ -358,3 +358,15 @@ func init() {
 	fmt.Println("end")
 }
 */
+
+//func init() {
+//	fmt.Println("start")
+//
+//	startDate:="2020-01-01 00:00:00"
+//	latestTime, latestCreateTime, err := models.GetLatestReadReportInfo(34167, startDate)
+//	if err != nil && err.Error() != utils.ErrNoRow() {
+//		return
+//	}
+//	fmt.Println(latestTime,latestCreateTime)
+//	fmt.Println("end")
+//}

+ 0 - 1
controllers/user.go

@@ -321,7 +321,6 @@ func (this *UserController) Login() {
 	}
 
 	if tokenItem == nil || (err != nil && err.Error() == utils.ErrNoRow()) {
-		token = tokenItem.AccessToken
 		timeUnix := time.Now().Unix()
 		timeUnixStr := strconv.FormatInt(timeUnix, 10)
 		token := utils.MD5(strconv.Itoa(userId)) + utils.MD5(timeUnixStr)