Utils.cs 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using Library;
  5. using MySystem.Models.Main;
  6. namespace MySystem
  7. {
  8. public class Utils
  9. {
  10. public readonly static Utils Instance = new Utils();
  11. private Utils()
  12. { }
  13. #region 推送激活数据信息
  14. public void SendActData(MerchantInfo pos, int actType = 3)
  15. {
  16. // if(pos.BrandId == 1) return;
  17. // string data = "{";
  18. // data += "\"userId\":\"" + pos.UserId + "\",";
  19. // data += "\"brandId\":\"2\",";
  20. // data += "\"actTime\":\"" + DateTime.Now.ToString("yyyy-MM-ddTHH:mm:ss") + "\",";
  21. // data += "\"bindTime\":\"" + DateTime.Now.ToString("yyyy-MM-ddTHH:mm:ss") + "\",";
  22. // data += "\"sn\":\"\",";
  23. // data += "\"actType\":\"" + actType + "\"";
  24. // data += "}";
  25. // function.WriteLog(DateTime.Now.ToString() + "\n" + data, "推送激活数据信息MQ日志");
  26. // RedisDbconn.Instance.AddList("KxsActQueue", data);
  27. }
  28. #endregion
  29. }
  30. }