Explorar el Código

fix:业主监控&分析报告问题修改

duxin hace 1 año
padre
commit
1136451411
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      src/jfw/front/hybg.go

+ 2 - 2
src/jfw/front/hybg.go

@@ -125,9 +125,9 @@ func (l *DeskAnalysisReport) DeskReport() {
 			}
 		}
 		//订阅信息
+		var types string
 		if len(areas) == 0 {
 			userData := jy.GetBigVipUserBaseMsg(l.Session(), *config.Middleground)
-			var types string
 			oArea := &map[string]interface{}{}
 			if userData.Data.Member.Status > 0 {
 				types = "m"
@@ -153,7 +153,7 @@ func (l *DeskAnalysisReport) DeskReport() {
 		if len(sql) > 0 {
 			strSql = fmt.Sprintf(" WHERE %s", strings.Join(sql, " and "))
 		}
-		log.Printf("用户userId:%s,mgoid:%s,sql:%s\n", userId, mgoUserId, strSql)
+		log.Printf("用户userId:%s,mgoid:%s,types:%s,sql:%s\n", userId, mgoUserId, types, strSql)
 		var dataArrMap []map[string]interface{}
 		reportRes, _ := g.DB().Query(gctx.New(), fmt.Sprintf(`SELECT * FROM analysis_report %s ORDER BY show_time DESC,classify desc LIMIT 10
 `, strSql))