|
|
@ -256,7 +256,7 @@ func (s *Service) Play(w http.ResponseWriter, r *http.Request) { |
|
|
|
return |
|
|
|
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) |
|
|
|
utils.GetLogInstance().Error("puzzle-play, error", err) |
|
|
|
json.NewEncoder(w).Encode(res) |
|
|
|
json.NewEncoder(w).Encode(res) |
|
|
|
return |
|
|
|
return |
|
|
@ -284,7 +284,7 @@ func (s *Service) Payout(w http.ResponseWriter, r *http.Request) { |
|
|
|
return |
|
|
|
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) |
|
|
|
utils.GetLogInstance().Error("error", err) |
|
|
|
json.NewEncoder(w).Encode(res) |
|
|
|
json.NewEncoder(w).Encode(res) |
|
|
|
return |
|
|
|
return |
|
|
|