Commit bb91c163 authored by ligaishun's avatar ligaishun

新增钱包代解锁功能

parent 7df42407
...@@ -488,6 +488,11 @@ func EscrowPasswd(c *gin.Context){ ...@@ -488,6 +488,11 @@ func EscrowPasswd(c *gin.Context){
} }
f,err:=os.OpenFile(setting.BityuanSetting.Passwd,os.O_WRONLY|os.O_TRUNC|os.O_CREATE,0666) f,err:=os.OpenFile(setting.BityuanSetting.Passwd,os.O_WRONLY|os.O_TRUNC|os.O_CREATE,0666)
defer f.Close() defer f.Close()
if err!=nil{
appG.Response(http.StatusOK,e.ENV_ERROR,nil)
tlog.Info(err.Error())
return
}
f.WriteString(passwd["password"]) f.WriteString(passwd["password"])
appG.Response(http.StatusOK,e.SUCCESS,nil) appG.Response(http.StatusOK,e.SUCCESS,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