第一次开发微信版网页,对最重要的获取微信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 }