|
@@ -33,27 +33,6 @@ namespace Hotline.Api.Controllers
|
|
|
_logger = logger;
|
|
|
}
|
|
|
|
|
|
- [AllowAnonymous]
|
|
|
- [HttpGet("gettest")]
|
|
|
- public void GetTest()
|
|
|
- {
|
|
|
- var path = $"{Directory.GetCurrentDirectory()}/templateword/测试.doc";
|
|
|
-
|
|
|
- var sss = Directory.Exists(Path.Combine(Directory.GetCurrentDirectory(), "templateword"));
|
|
|
- if (sss )
|
|
|
- _logger.LogInformation("检测成功");
|
|
|
- else
|
|
|
- _logger.LogInformation("检测失败");
|
|
|
-
|
|
|
- string[] files = Directory.GetFiles($"{Directory.GetCurrentDirectory()}/templateword");
|
|
|
-
|
|
|
- foreach (string file in files)
|
|
|
- {
|
|
|
- _logger.LogInformation("文件"+file);
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
-
|
|
|
/// <summary>
|
|
|
///
|
|
|
/// </summary>
|
|
@@ -63,9 +42,8 @@ namespace Hotline.Api.Controllers
|
|
|
public async Task<IActionResult> OrderSubmissionForm([FromBody] List<string> Ids)
|
|
|
{
|
|
|
var streams = new Dictionary<string, Stream>();
|
|
|
- var path = $"{Directory.GetCurrentDirectory()}/templateword/yibinjiaobandan.doc";
|
|
|
- //var path = $"{Environment.CurrentDirectory}/Template/yibinjiaobandan.doc";
|
|
|
-
|
|
|
+ var path = $"{Directory.GetCurrentDirectory()}/Template/宜宾交办单模版.doc";
|
|
|
+
|
|
|
foreach (var item in Ids)
|
|
|
{
|
|
|
var order = await _orderRepository.GetAsync(item, HttpContext.RequestAborted);
|