|
@@ -50,7 +50,7 @@ func GetActivityVideoListAll(condition string, pars []interface{}, startSize, pa
|
|
}
|
|
}
|
|
|
|
|
|
func UpdateActivityVideoCounts(activityId int) (err error) {
|
|
func UpdateActivityVideoCounts(activityId int) (err error) {
|
|
- sql := `UPDATE cygx_activity_video SET voice_counts = voice_counts+1 WHERE activity_id = ? `
|
|
|
|
|
|
+ sql := `UPDATE cygx_activity_video SET video_counts = video_counts+1 WHERE activity_id = ? `
|
|
o := orm.NewOrm()
|
|
o := orm.NewOrm()
|
|
_, err = o.Raw(sql, activityId).Exec()
|
|
_, err = o.Raw(sql, activityId).Exec()
|
|
return
|
|
return
|