Commit 0c6ea0bb authored by 李伟@五瓣科技's avatar 李伟@五瓣科技

calculate decimal

parent 9a7eef1e
......@@ -337,6 +337,7 @@ func (web *WebServicer) Calculate(w http.ResponseWriter, r *http.Request) {
res := requestAmount.Add(currentAmount).Sub(everyTxAmount.Mul(txNum))
resAsJson, err := json.Marshal(res)
if err != nil {
http.Error(w, err.Error(), http.StatusBadRequest)
return
......
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