xingzai преди 8 месеца
родител
ревизия
64cde829f2
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      models/cygx_yanxuan_special_user.go

+ 1 - 1
models/cygx_yanxuan_special_user.go

@@ -277,7 +277,7 @@ func UpdateYanxuanSpecialAuthorFansNum(fansNum, userId int) (err error) {
 func UdpateYanxuanSpecialauthorArticleNum(articleNum, userId int) (err error) {
 	o := orm.NewOrm()
 	sql := ``
-	sql = `UPDATE cygx_yanxuan_special_author SET article_num = ? ,article_publish_time = NOEW(), modify_time = NOEW()   WHERE user_id = ? `
+	sql = `UPDATE cygx_yanxuan_special_author SET article_num = ? ,article_publish_time = NOW(), modify_time = NOW()   WHERE user_id = ? `
 	_, err = o.Raw(sql, articleNum, userId).Exec()
 	return
 }