MVC 微信开发获取用户OpenID

 

第一次开发微信版网页,对最重要的获取微信OpenId,特此记录下来

1.首先得有appid和appsecret

 1 1.    public class WeiXin {
 2 
 3         public static string appid {
 4             get {
 5                 string _appid = "wx3xxxxxxxxxxxxxxx";
 6                 return _appid;
 7             }
 8         }
 9         public static string aseret {
10             get {
11                 string appsecret = "b6719276d539796d94bxxxxxxxxxxxxxxx";
12                 return appsecret;
13             }
14         }
15 
16 }
准备appid和appsecret

相关文章:

  • 2021-11-27
  • 2021-12-11
  • 2022-12-23
  • 2022-12-23
  • 2021-09-21
  • 2021-11-28
  • 2021-09-23
  • 2021-12-05
猜你喜欢
  • 2022-12-23
  • 2022-01-18
  • 2022-12-23
  • 2021-10-31
  • 2021-07-20
  • 2022-12-23
相关资源
相似解决方案