Ejemplo n.º 1
0
 public ActionResult ModifyTradePrice(FormCollection collection, int id = 0)
 {
     if (id > 0)
     {
         var req = new ModifyPriceRequest
         {
             Price = collection["price"]
         };
         if (double.Parse(collection["postfee"]) > 0)
         {
             req.Postfee = double.Parse(collection["postfee"]);
         }
         var r = YunClient.Instance.Execute(req, Token);
         return(Json(new { result = r.Result, error = r.ErrMsg }));
     }
     return(Json(new { result = false, error = "订单不存在" }));
 }
Ejemplo n.º 2
0
 public ActionResult ModifyTradePrice(FormCollection collection, int id = 0)
 {
     if (id > 0)
     {
         var req = new ModifyPriceRequest
         {
             Price = collection["price"]
         };
         if (double.Parse(collection["postfee"]) > 0)
         {
             req.Postfee = double.Parse(collection["postfee"]);
         }
         var r = YunClient.Instance.Execute(req, Member.Token);
         return Json(new { result = r.Result, error = r.ErrMsg });
     }
     return Json(new { result = false, error = "订单不存在" });
 }