摘要: 支持.net4.0 https://files.cnblogs.com/files/yyyuguo/mongodbDll.zip 阅读全文
posted @ 2018-02-07 15:43 yyyuguo 阅读(139) 评论(0) 推荐(0) 编辑
摘要: using ServiceStack.Redis; using System; using System.Collections.Generic; using System.Configuration; using System.Linq; using System.Text; using TalentCloud.Common; using TalentCloud.Base.Utils; na... 阅读全文
posted @ 2018-02-07 15:27 yyyuguo 阅读(303) 评论(0) 推荐(0) 编辑
摘要: 首先要理解微信支付的流程。需二次握手。 先把订单信息,金额传给微信,微信返回相应信息,再调用微信支付。 详细的查看微信公众号的相关资料 阅读全文
posted @ 2018-02-07 15:20 yyyuguo 阅读(2532) 评论(1) 推荐(0) 编辑
摘要: //授权页面 public partial class wxProcess : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { string reurl = ""; ... 阅读全文
posted @ 2018-02-07 15:19 yyyuguo 阅读(598) 评论(0) 推荐(0) 编辑
摘要: /// <summary>/// 获取二维码图片Url,需要Format 0.ticket/// </summary>public const string WeiXin_QrCode_GetUrl = "https://mp.weixin.qq.com/cgi-bin/showqrcode?tic 阅读全文
posted @ 2018-02-07 15:18 yyyuguo 阅读(1380) 评论(0) 推荐(0) 编辑
摘要: public const string WeiXin_User_GetInfoUrl = "https://api.weixin.qq.com/cgi-bin/user/info?access_token={0}&openid={1}&lang=zh_CN"; /// /// 根据OpenID 获取用户在微信的基本信息(需关注公众号) /// ... 阅读全文
posted @ 2018-02-07 15:17 yyyuguo 阅读(1958) 评论(0) 推荐(0) 编辑
摘要: 只有生成素材ID,图片才能在微信中以图片格式发出去。 阅读全文
posted @ 2018-02-07 15:16 yyyuguo 阅读(584) 评论(0) 推荐(0) 编辑
摘要: 需要用户和公众号,在48小时内有过互动,不然发不出去。 阅读全文
posted @ 2018-02-07 15:15 yyyuguo 阅读(719) 评论(0) 推荐(0) 编辑
摘要: ///验签绑定公众号的时候,有回复信息的入口public void ProcessRequest(HttpContext context) { string postString = string.Empty; if (HttpContext.Current.Request.HttpMethod.ToUpper() == "POST... 阅读全文
posted @ 2018-02-07 15:14 yyyuguo 阅读(330) 评论(0) 推荐(0) 编辑
摘要: "button": [{"type": "view","name": "11","url": "http://www.baidu.com/Weixin/wxProcess.aspx?reurl=http://www.baidu.com"}, {"type": "view","name": "22", 阅读全文
posted @ 2018-02-07 15:10 yyyuguo 阅读(335) 评论(0) 推荐(0) 编辑
摘要: using System; using System.Collections.Generic; using System.Linq; using System.Web; using TalentCloud.Base.Utils; using System.IO; using System.Text; using System.Web.Security; using System.Configur... 阅读全文
posted @ 2018-02-07 15:09 yyyuguo 阅读(869) 评论(0) 推荐(0) 编辑
摘要: 前端代码 引用 js : 将加密后的信息,和加密KEY的主键传回登录接口 获取解密Key,对加密信息进行解密 引用 using System.Security.Cryptography;using Cn.Ubingo.Security.RSA.Key; 解密 生成密钥对 阅读全文
posted @ 2018-02-07 15:07 yyyuguo 阅读(2591) 评论(0) 推荐(0) 编辑