namespace learun.wechat { /// /// 版 本 EasyCode EC管理后台 /// Copyright (c) 2019-present EC管理有限公司 /// 创建人:tobin /// 日 期:2019.11.06 /// 描 述:OpenToken获取 /// public class OpenTokenGet : OperationRequestBase { private string url = "https://api.weixin.qq.com/sns/oauth2/access_token?appid={0}&secret={1}&code={2}&grant_type=authorization_code"; /// /// /// /// protected override string Url() { return string.Format(url, appid, secret, code); } /// /// 应用唯一标识,在微信开放平台提交应用审核通过后获得 /// /// [IsNotNull] public string appid { get; set; } /// /// 应用密钥AppSecret,在微信开放平台提交应用审核通过后获得 /// /// [IsNotNull] public string secret { get; set; } /// /// 填写第一步获取的code参数 /// [IsNotNull] public string code { get; set; } } }