From b0860db793c49460f4561290f4b92501f50aebef Mon Sep 17 00:00:00 2001 From: "DESKTOP-M4V1LH5\\Jin" Date: Tue, 4 Sep 2018 22:07:10 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=9D=E6=AD=A5=E5=A2=9E=E5=8A=A0=E8=8E=B7?= =?UTF-8?q?=E5=8F=96=E7=94=A8=E6=88=B7=E6=89=8B=E6=9C=BA=E5=8F=B7=E7=A0=81?= =?UTF-8?q?api?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- COMCMS.Web/Controllers/api/UserController.cs | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/COMCMS.Web/Controllers/api/UserController.cs b/COMCMS.Web/Controllers/api/UserController.cs index 4d5bce1..960ed7e 100644 --- a/COMCMS.Web/Controllers/api/UserController.cs +++ b/COMCMS.Web/Controllers/api/UserController.cs @@ -14,6 +14,7 @@ using NewLife.Log; using static COMCMS.Web.Models.APIModels; using Newtonsoft.Json; using Newtonsoft.Json.Linq; +using Senparc.Weixin.WxOpen; namespace COMCMS.Web.Controllers.api { @@ -190,11 +191,20 @@ namespace COMCMS.Web.Controllers.api } #endregion + #region 同步获取用户手机号码 + [HttpGet] + public object SyncUserTel(string encryptedData, string iv, string random = "", string timeStamp = "", string signature = "") + { + //Senparc.Weixin.WxOpen.Helpers.EncryptHelper.DecryptPhoneNumber() + return new ReJson(0, "同步电话号码成功!"); + } + #endregion + //#region 测试 //[HttpGet] //public object Test() //{ - + // reJson.code = 0; // reJson.message = "测试信息,成功!"; // return reJson;