1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Web;
- using System.Web.Mvc;
- using EMISOnline.Entities;
- using EMISOnline.CommonLogic.StudentServices;
- using System.Text;
- namespace EMISOnline.Web.Controllers
- {
- public class FtpFileController : Controller
- {
- //
- // GET: /FtpFile/
- public IFtpVideoServices FtpVideoServices { get; set; }
- public ActionResult Index()
- {
- return View();
- }
- public ActionResult SaveFtpFile(string FTPPath,string M3u8Path,string FTPUrl,string M3u8Url,string Name,int Status)
- {
- try
- {
- EM_FTPVideo v = new EM_FTPVideo();
- v.FTPPath = HttpUtility.UrlDecode(FTPPath, Encoding.UTF8);
- v.FTPUrl = HttpUtility.UrlDecode(FTPUrl, Encoding.UTF8);
- v.M3u8Path = M3u8Path;
- v.M3u8Url = M3u8Url;
- v.Name = HttpUtility.UrlDecode(Name,Encoding.UTF8);
- v.Status = Status;
- FtpVideoServices.SaveFtpVideo(v);
- return base.Json(new { rtn = true }, JsonRequestBehavior.AllowGet);
- }
- catch (Exception ex)
- {
- return base.Json(new { rtn = false }, JsonRequestBehavior.AllowGet);
- }
- }
- }
- }
|