public ActionResult GetToken() { try { return(Json(new { uptoken = QiniuHelper.GetToken() }, JsonRequestBehavior.AllowGet)); } catch (Exception ex) { LogManager.GetCurrentClassLogger().Error(ex); return(null); } }
//[HttpPost] public ActionResult GetQiniuToken() { var upToken = QiniuHelper.GetToken(); return(Json(new { uptoken = upToken }, JsonRequestBehavior.AllowGet)); }