mirror of
https://github.com/TeaOSLab/EdgeAPI.git
synced 2025-11-18 03:40:26 +08:00
优化代码
This commit is contained in:
@@ -173,7 +173,7 @@ func (this *AdminService) FindEnabledAdmin(ctx context.Context, req *pb.FindEnab
|
||||
pbOtpAuth = &pb.Login{
|
||||
Id: int64(adminAuth.Id),
|
||||
Type: adminAuth.Type,
|
||||
ParamsJSON: []byte(adminAuth.Params),
|
||||
ParamsJSON: adminAuth.Params,
|
||||
IsOn: adminAuth.IsOn == 1,
|
||||
}
|
||||
}
|
||||
@@ -393,7 +393,7 @@ func (this *AdminService) ListEnabledAdmins(ctx context.Context, req *pb.ListEna
|
||||
pbOtpAuth = &pb.Login{
|
||||
Id: int64(adminAuth.Id),
|
||||
Type: adminAuth.Type,
|
||||
ParamsJSON: []byte(adminAuth.Params),
|
||||
ParamsJSON: adminAuth.Params,
|
||||
IsOn: adminAuth.IsOn == 1,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user