HaodaParam.cs 1.1 KB

123456789101112131415161718192021222324252627282930313233
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using MySystem.Models.Main;
  5. namespace MySystem
  6. {
  7. /// <summary>
  8. /// 好哒参数
  9. /// </summary>
  10. public static class HaodaParam
  11. {
  12. public static string BoxRequestUrl = "https://openapi.iboxpay.com";
  13. public static string BoxAppId = "AP8322645764893728768";
  14. public static string BoxAppSecret = "je1TElprp3jzWETsG3FcWqtmpreEHqZS";
  15. public static string BoxPublicKey = "";
  16. public static string BrhCode = "015001";
  17. //应用名称:好哒-卢爱香
  18. // public static string BoxAppId = "AP5855193046968590336";
  19. // public static string BoxAppSecret = "m6V23Bss6JX2xeM12TUnls8HGuh4kpzT";
  20. public static void GetBoxInfo()
  21. {
  22. WebCMSEntities db = new WebCMSEntities();
  23. List<CustomTagSet> sets = db.CustomTagSet.Where(m => m.Title.StartsWith("盒子")).ToList();
  24. foreach(CustomTagSet set in sets)
  25. {
  26. RedisDbconn.Instance.Set("Agent" + set.Tags + ":" + set.QueryCount, set.Contents);
  27. }
  28. db.Dispose();
  29. }
  30. }
  31. }