xxxx18一60岁hd中国/日韩女同互慰一区二区/西西人体扒开双腿无遮挡/日韩欧美黄色一级片 - 色护士精品影院www

  • 大小: 6KB
    文件類型: .zip
    金幣: 2
    下載: 0 次
    發(fā)布日期: 2021-06-08
  • 語(yǔ)言: C#
  • 標(biāo)簽: 微信.NET??

資源簡(jiǎn)介

微信認(rèn)證流程(我自己簡(jiǎn)稱三次握手): 1、用戶同意授權(quán),獲取code 2、通過(guò)code換取網(wǎng)頁(yè)授權(quán)access_token,用戶openId等信息 3、通過(guò)access_token和用戶的openId獲取該用戶的用戶信息 因?yàn)榈谝徊奖仨氁?jīng)過(guò)微信的登錄授權(quán),不能網(wǎng)頁(yè)后端請(qǐng)求,所以先要經(jīng)過(guò)用戶同意,通過(guò)頁(yè)面網(wǎng)頁(yè)請(qǐng)求組裝的微信請(qǐng)求鏈接。請(qǐng)求該鏈接, 獲取code后,后端模擬請(qǐng)求。獲取用戶信息。

資源截圖

代碼片段和文件信息

using?System;
using?System.Data;
using?System.Configuration;
using?System.Collections;
using?System.Web;
using?System.Web.Security;
using?System.Web.UI;
using?System.Web.UI.WebControls;
using?System.Web.UI.WebControls.WebParts;
using?System.Web.UI.HtmlControls;
using?System.Net;
using?System.Text;
using?System.Runtime.Serialization.Json;
using?System.IO;
namespace?GustBook.WEB.front.html.CommonControl
{
????public?partial?class?wxProcess1?:?System.Web.UI.Page
????{
????????protected?void?Page_Load(object?sender?EventArgs?e)
????????{
????????????if?(!IsPostBack)
????????????{
//????????????????測(cè)試號(hào)信息
//appID
//wx81b71d9e6fcb9dd8
//appsecret
//1b7fb028c223d1d7283946ee8b52ee4b

????????????????//????????????TTK
????????????????//????????????????wxfef3c2c5833330ea
????????????????//AppSecret(應(yīng)用密鑰)a808ad45e740c0fa04fc1ca2579b83b5?隱藏?重置


????????????????string?reurl?=?““;
????????????????//傳遞參數(shù),獲取用戶信息后,可跳轉(zhuǎn)到自己定義的頁(yè)面,想怎么處理就怎么處理
????????????????if?(Request.QueryString[“reurl“]?!=?null?&&?Request.QueryString[“reurl“]?!=?““)
????????????????{
????????????????????reurl?=?Request.QueryString[“reurl“].ToString();
????????????????}
????????????????else
????????????????{
????????????????????reurl?=?“http://www.dreamlinker.cn“;
????????????????}

????????????????string?code?=?““;

????????????????//彈出授權(quán)頁(yè)面(如在不彈出授權(quán)頁(yè)面基礎(chǔ)下未獲得openid,彈出授權(quán)頁(yè)面,提示用戶授權(quán))
????????????????if?(Request.QueryString[“auth“]?!=?null?&&?Request.QueryString[“auth“]?!=?““?&&?Request.QueryString[“auth“]?==?“1“)
????????????????{
????????????????????Response.Redirect(“https://open.weixin.qq.com/connect/oauth2/authorize?appid=“?+?“wxfef3c2c5833330ea“?+?“&redirect_uri=http://www.dreamlinker.cn/wxProcess2.aspx?reurl=“?+?reurl?+?“&response_type=code&scope=snsapi_userinfo&state=1#wechat_redirect“);
????????????????}
????????????????else
????????????????{
????????????????????//不彈出授權(quán)頁(yè)面
????????????????????Response.Redirect(“https://open.weixin.qq.com/connect/oauth2/authorize?appid=“?+?“wxfef3c2c5833330ea“?+?“&redirect_uri=http://www.dreamlinker.cn/wxProcess2.aspx?reurl=“?+?reurl?+?“&response_type=code&scope=snsapi_base&state=1#wechat_redirect“);
???????????????????//?https://open.weixin.qq.com/connect/oauth2/authorize?appid=wxf0e81c3bee622d60&redirect_uri=http%3A%2F%2Fnba.bluewebgame.com%2Foauth_response.php&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect
????????????????}
????????????}
????????}
????}
}

?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????文件????????2646??2016-03-01?23:21??wxProcess.aspx.cs
?????文件?????????795??2016-02-27?00:17??wxProcess.aspx.designer.cs
?????文件?????????371??2016-02-27?00:17??wxProcess2.aspx
?????文件???????11281??2016-03-02?09:25??wxProcess2.aspx.cs
?????文件?????????796??2016-02-27?00:17??wxProcess2.aspx.designer.cs
?????文件?????????369??2016-02-27?00:17??wxProcess.aspx

評(píng)論

共有 條評(píng)論

相關(guān)資源