Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

43 řádky
1.3 KiB

  1. using System.Web;
  2. using System.Text;
  3. using System.IO;
  4. using System.Net;
  5. using System;
  6. using System.Collections.Generic;
  7. using System.Data;
  8. using System.Data.SqlClient;
  9. namespace basic
  10. {
  11. /// <summary>
  12. /// 类名:QQConfig
  13. /// 功能:基础配置类
  14. /// </summary>
  15. public class QQConfig
  16. {
  17. private static string client_id = "";//qzone_AppID
  18. private static string client_secret = "";//qzone_AppKey
  19. private static string redirect_uri = "";//qzone_Redirect_uri
  20. static QQConfig()
  21. {
  22. client_id = "101168247";
  23. client_secret = "b06ef183d683728572d456ea66ebecc3";
  24. string strUrl = HttpContext.Current.Request.Url.Host;
  25. redirect_uri = "http://" + strUrl + "/QQlogin/callback.aspx";
  26. }
  27. public static string Client_id
  28. {
  29. get { return QQConfig.client_id; }
  30. set { QQConfig.client_id = value; }
  31. }
  32. public static string Client_secret
  33. {
  34. get { return QQConfig.client_secret; }
  35. set { QQConfig.client_secret = value; }
  36. }
  37. public static string Redirect_uri
  38. {
  39. get { return QQConfig.redirect_uri; }
  40. set { QQConfig.redirect_uri = value; }
  41. }
  42. }
  43. }