【微信小程序】c# 实现获取openid、session_key 服务端
版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/tianchao7c/article/details/83413558 c#写一个获取微信小程序 openid和session_key 的方法。。 1,微信小程序端 // 登录 wx.login({ success: res => { // 发送 res.code 到后台换取 openId, sessionKey, unionId console.log(res.code); wx.request({ url: 'http://localhost:10000/getcode/getcode/', data:{ 'json_code': res.code }, method: 'GET', header: { 'content-type': 'application/x-www-form-urlencoded', }, success:function(res){ console.log(res.data.data) } }) } }) 2,c#后台 #region 获取小程序open...