2 Commits

Author SHA1 Message Date
coward
b1b49e2605 :art:修复下线客户端bug
All checks were successful
continuous-integration/drone/tag Build is passing
2024-06-07 08:47:47 +08:00
coward
24ee99e33a :bug:修复下线客户端的bug
All checks were successful
continuous-integration/drone/tag Build is passing
2024-06-06 17:26:17 +08:00
2 changed files with 2 additions and 2 deletions

View File

@@ -229,5 +229,5 @@ func (r clientRepo) GetByPublicKey(publicKey string) (data entity.Client, err er
// @param id
// @return err
func (r clientRepo) Disabled(id string) (err error) {
return r.Model(&entity.Client{}).Where("id = ?", id).Update("status", 0).Error
return r.Model(&entity.Client{}).Where("id = ?", id).Update("enabled", 0).Error
}

View File

@@ -68,7 +68,7 @@ const initServerInfo = () => {
// 强制下线客户端
const offlineClientHandler = (clientID: string) => {
offlineClient().then(res => {
offlineClient(clientID).then(res => {
if (res.code === 200) {
message("下线客户端成功", { type: "success" });
}