初步增加获取用户手机号码api

This commit is contained in:
2018-09-04 22:07:10 +08:00
parent b60448827a
commit b0860db793
+11 -1
View File
@@ -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;