xingzai 1 ano atrás
pai
commit
e10885e303
1 arquivos alterados com 3 adições e 0 exclusões
  1. 3 0
      controllers/cygx/user.go

+ 3 - 0
controllers/cygx/user.go

@@ -730,6 +730,9 @@ func (this *UserController) TableDetail() {
 			endDate += " 23:59:59"
 			condition += ` AND r.create_time <= '` + endDate + `' `
 		}
+		if wxUser.Mobile == "" {
+			wxUser.Mobile = wxUser.Email
+		}
 		total, err = cygx.GetCygxArticleHistoryCount(wxUser.Mobile, wxUser.Email, condition)
 		if err != nil {
 			br.Msg = "获取信息失败"