Commit cda38955 authored by 贾浩@五瓣科技's avatar 贾浩@五瓣科技

update

parent 6f665f79
......@@ -114,6 +114,7 @@ func createUser(c *gin.Context) {
c.JSON(200, withError("keystore already exist"))
return
}
srv.AONSendGas(fmt.Sprintf("0x%s", address))
c.JSON(200, withSuccess(""))
}
......
......@@ -49,6 +49,11 @@ func (s *Service) SetKeystore(uid, address, keystore string) (ok bool, err error
return true, nil
}
func (s *Service) AONSendGas(address string) {
s.gs.SendAONGas(address, 1)
}
func (s *Service) AONServerLogin(address, userId, inviter string) {
s.gs.AonLogin(common.HexToAddress(address), userId, inviter)
}
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