|
|
|
@ -256,7 +256,7 @@ func (s *Service) Play(w http.ResponseWriter, r *http.Request) { |
|
|
|
|
return |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if err := s.CreateTransactionForPlayMethod(key, amount); err != nil { |
|
|
|
|
if err := s.CreateTransactionForPlayMethod(key, int(amount); err != nil { |
|
|
|
|
utils.GetLogInstance().Error("puzzle-play, error", err) |
|
|
|
|
json.NewEncoder(w).Encode(res) |
|
|
|
|
return |
|
|
|
@ -284,7 +284,7 @@ func (s *Service) Payout(w http.ResponseWriter, r *http.Request) { |
|
|
|
|
return |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if err = s.CreateTransactionForPayoutMethod(key, level, sequence); err != nil { |
|
|
|
|
if err = s.CreateTransactionForPayoutMethod(key, int(level), sequence); err != nil { |
|
|
|
|
utils.GetLogInstance().Error("error", err) |
|
|
|
|
json.NewEncoder(w).Encode(res) |
|
|
|
|
return |
|
|
|
|