mirror of
https://gitee.com/mirrors/AllinSSL.git
synced 2026-03-08 07:41:10 +08:00
修复acme账户reg更新问题
This commit is contained in:
@@ -55,7 +55,7 @@ func SaveUserToDB(db *public.Sqlite, user *MyUser, Type string) error {
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
if len(data) > 0 {
|
if len(data) > 0 {
|
||||||
_, err = db.Update(map[string]interface{}{
|
_, err = db.Where("id=?", []any{data[0]["id"]}).Update(map[string]interface{}{
|
||||||
"private_key": string(pemBytes),
|
"private_key": string(pemBytes),
|
||||||
"reg": regBytes,
|
"reg": regBytes,
|
||||||
"update_time": now,
|
"update_time": now,
|
||||||
|
|||||||
Reference in New Issue
Block a user