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

            return(Json(new { uptoken = upToken }, JsonRequestBehavior.AllowGet));
        }