修改docker默认时区为上海
修复了记住登录无效的问题 修复了ssh下载文件名称不正确的问题 授权凭证增加了密钥类型
This commit is contained in:
@ -85,6 +85,11 @@ func UpdateAssetById(o *Asset, id string) {
|
||||
global.DB.Updates(o)
|
||||
}
|
||||
|
||||
func UpdateAssetActiveById(active bool, id string) {
|
||||
sql := "update assets set active = ? where id = ?"
|
||||
global.DB.Exec(sql, active, id)
|
||||
}
|
||||
|
||||
func DeleteAssetById(id string) {
|
||||
global.DB.Where("id = ?", id).Delete(&Asset{})
|
||||
}
|
||||
|
Reference in New Issue
Block a user