| | |
| | | _taskService = taskService; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 涓嬭浇PDA |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | [HttpPost, HttpGet, Route("DownLoadApp"), AllowAnonymous] |
| | | public virtual ActionResult DownLoadApp() |
| | | { |
| | |
| | | |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 涓婁紶PDA |
| | | /// </summary> |
| | | /// <param name="fileInput"></param> |
| | | /// <returns></returns> |
| | | [HttpPost, HttpGet, Route("UploadApp"), AllowAnonymous] |
| | | [Consumes("multipart/form-data")] |
| | | public WebResponseContent UploadApp(IEnumerable<IFormFile> fileInput) |
| | |
| | | if (!Directory.Exists(dicPath)) Directory.CreateDirectory(dicPath); |
| | | string path = $"{dicPath}WMS-PDA{DateTime.Now:yyyyMMddhhmmss}.apk"; |
| | | dicPath = $"{dicPath}WMS-PDA.apk"; |
| | | if (System.IO.File.Exists(dicPath)) |
| | | System.IO.File.Move(dicPath, path); |
| | | |
| | | using (var stream = new FileStream(dicPath, FileMode.Create)) |