rdluck 4 years ago
parent
commit
f01027a9c9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      models/bill.go

+ 1 - 1
models/bill.go

@@ -113,7 +113,7 @@ func GetRddpListen(uid int) (item *Listen, err error) {
 	o.Using("rddp")
 	sql := ` SELECT COUNT(1),SUM(b.video_play_seconds) FROM  report_audio_record AS a
 			 INNER JOIN report AS b ON a.report_id=b.id
-			 WHERE user_id= LIMIT 1`
+			 WHERE user_id=? LIMIT 1`
 	err = o.Raw(sql, uid).QueryRow(&item)
 	return
 }