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

update

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