PartOrderController.cs 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using Microsoft.AspNetCore.Mvc;
  5. using Microsoft.AspNetCore.Http;
  6. using Microsoft.Extensions.Logging;
  7. using Microsoft.Extensions.Options;
  8. using Microsoft.AspNetCore.Authorization;
  9. using System.Web;
  10. using MySystem.MainModels;
  11. using LitJson;
  12. using Library;
  13. using System.IO;
  14. namespace MySystem.Areas.Api.Controllers.v1
  15. {
  16. [Area("Api")]
  17. [Route("Api/[controller]/[action]")]
  18. public class PartOrderController : BaseController
  19. {
  20. public PartOrderController(IHttpContextAccessor accessor, ILogger<BaseController> logger, IOptions<Setting> setting) : base(accessor, logger, setting)
  21. {
  22. }
  23. #region 分账回调(好哒)
  24. [Route("/api/partorder/notice/{TypeName:minlength(4)}")]
  25. public Dictionary<string, string> Notice(string TypeName)
  26. {
  27. StreamReader sr = new StreamReader(Request.Body);
  28. string requestMes = sr.ReadToEnd();
  29. function.WriteLog(DateTime.Now.ToString() + "\n" + TypeName + "::" + requestMes + "\r\n\r\n", "分账回调(好哒)");
  30. // RedisDbconn.Instance.AddList("WeChatPayBackForHd", requestMes);
  31. Dictionary<string, string> dic = new Dictionary<string, string>();
  32. dic.Add("resultCode", "1");
  33. return dic;
  34. }
  35. #endregion
  36. }
  37. }