|
|
- using System.Web;
- using System.Text;
- using System.IO;
- using System.Net;
- using System;
- using System.Collections.Generic;
- using System.Data;
- using System.Data.SqlClient;
-
- namespace basic
- {
- /// <summary>
- /// 类名:QQConfig
- /// 功能:基础配置类
- /// </summary>
- public class QQConfig
- {
- private static string client_id = "";//qzone_AppID
- private static string client_secret = "";//qzone_AppKey
- private static string redirect_uri = "";//qzone_Redirect_uri
- static QQConfig()
- {
- client_id = "101168247";
- client_secret = "b06ef183d683728572d456ea66ebecc3";
- string strUrl = HttpContext.Current.Request.Url.Host;
- redirect_uri = "http://" + strUrl + "/QQlogin/callback.aspx";
- }
- public static string Client_id
- {
- get { return QQConfig.client_id; }
- set { QQConfig.client_id = value; }
- }
- public static string Client_secret
- {
- get { return QQConfig.client_secret; }
- set { QQConfig.client_secret = value; }
- }
- public static string Redirect_uri
- {
- get { return QQConfig.redirect_uri; }
- set { QQConfig.redirect_uri = value; }
- }
- }
- }
|