Commit a0e71097 authored by szh's avatar szh

unlock 处理逻辑更新

parent f9d0f991
...@@ -468,7 +468,7 @@ func Unlock() error{ ...@@ -468,7 +468,7 @@ func Unlock() error{
tlog.Info("Read passwd failed") tlog.Info("Read passwd failed")
return err return err
} }
_,err=setting.PaiClient.Unlock(&types.WalletUnLock{ reply,err :=setting.PaiClient.Unlock(&types.WalletUnLock{
Passwd: string(passwd), Passwd: string(passwd),
Timeout: 0, Timeout: 0,
WalletOrTicket: false, WalletOrTicket: false,
...@@ -476,10 +476,13 @@ func Unlock() error{ ...@@ -476,10 +476,13 @@ func Unlock() error{
XXX_unrecognized: nil, XXX_unrecognized: nil,
XXX_sizecache: 0, XXX_sizecache: 0,
}) })
if err!=nil{ if err!=nil {
tlog.Info("unlock auth failed") tlog.Info("unlock auth failed")
return err return err
} }
if !reply.IsOk {
tlog.Error("unlock auth failed","err",reply.Msg)
}
return nil 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