|
|
let insertSql = 'INSERT INTO login_history (uuid, time, deviceInfo, type, ip) VALUES (?, ?, ?, ?, ?)'
|
|
let insertSql = 'INSERT INTO login_history (uuid, time, deviceInfo, type, ip) VALUES (?, ?, ?, ?, ?)'
|
|
|
- await db.query(insertSql, [uuid, time, uaResult, type || 'qq', ip])
|
|
|
|
|
|
|
+ await db.query(insertSql, [uuid, time, { 'ua': userAgent }, type || 'qq', ip])
|