This commit is contained in:
huangsimin 2018-12-18 15:05:28 +08:00
commit be2a590aa8

View File

@ -110,7 +110,7 @@ func (logdb *LogDB) Select(query string, args ...interface{}) *sql.Rows {
// ADError 广告错误后更新
func (logdb *LogDB) ADError(uid, error_msg string) {
_, err := logdb.driver.Exec("update "+logdb.DB+" set status = status + 1000, error_msg=? where uid =?;", error_msg, uid)
_, err := logdb.driver.Exec("update ? set status = status + 1000, error_msg=? where uid =?;", logdb.DB, error_msg, uid)
if err != nil {
log.Println(err)
}