HomeController.cs 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Diagnostics;
  4. using System.Linq;
  5. using System.Threading.Tasks;
  6. using Microsoft.AspNetCore.Mvc;
  7. using Microsoft.Extensions.Logging;
  8. using Library;
  9. using LitJson;
  10. using System.Text;
  11. namespace MySystem.Controllers
  12. {
  13. public class HomeController : Controller
  14. {
  15. private readonly ILogger<HomeController> _logger;
  16. public HomeController(ILogger<HomeController> logger)
  17. {
  18. _logger = logger;
  19. }
  20. public IActionResult Index()
  21. {
  22. return View();
  23. }
  24. public string test(string a)
  25. {
  26. // string result = HaoDaHelper.Instance.CardInComeRecord("1486641", "2023-10-01", "2023-10-31", "030510606906888", "", "", "1", "10");
  27. // return result;
  28. return AliIotFunction.Instance.IotDeviceQuery("LKB01230900202000002");
  29. // return AliIotFunction.Instance.IotUnBind("2088720723136476", "LKBYM2023090700098");
  30. // return AliIotFunction.Instance.IotTradeVoice("LKBYM2023090700098", "2088720723136476", DateTime.Now.ToString("yyyyMMddHHmmssfff"), a, "OTHER");
  31. // return AliIotFunction.Instance.IotTradeVoice("01010VO0cD5XkzVNlEVW61HRVe5Jd2sf9u6h4ndoZyS4Gg1rJAeRYJc", "2088720723136476", DateTime.Now.ToString("yyyyMMddHHmmssfff"), a, "OTHER");
  32. }
  33. }
  34. }