Commit a0e71097 authored by szh's avatar szh

unlock 处理逻辑更新

parent f9d0f991
......@@ -468,7 +468,7 @@ func Unlock() error{
tlog.Info("Read passwd failed")
return err
}
_,err=setting.PaiClient.Unlock(&types.WalletUnLock{
reply,err :=setting.PaiClient.Unlock(&types.WalletUnLock{
Passwd: string(passwd),
Timeout: 0,
WalletOrTicket: false,
......@@ -476,10 +476,13 @@ func Unlock() error{
XXX_unrecognized: nil,
XXX_sizecache: 0,
})
if err!=nil{
if err!=nil {
tlog.Info("unlock auth failed")
return err
}
if !reply.IsOk {
tlog.Error("unlock auth failed","err",reply.Msg)
}
return nil
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment