Merge branch 'master' of http://474420502.top/test/logdb
This commit is contained in:
commit
be2a590aa8
2
logdb.go
2
logdb.go
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user