Browse Source

【修改】移动端微信登录接口优化;

西昌分支
dyy 7 months ago
parent
commit
f79d9c876d
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/WeixinApi.cs

+ 3
- 3
Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/WeixinApi.cs View File

@@ -200,7 +200,7 @@ namespace Learun.Application.WebApi.Modules
{ {
return Fail("手机号不能为空。"); return Fail("手机号不能为空。");
} }
var code = redisCache.Read<string>("sendcodeinapp_" + loginModel.codeType + "_" + mobiletemp);
var code = redisCache.Read<string>("sendcodeinapp_" + loginModel.codeType + "_" + mobiletemp, CacheId.sms);
if (!string.IsNullOrEmpty(code) && code == loginModel.verifycode) if (!string.IsNullOrEmpty(code) && code == loginModel.verifycode)
{ {
//return Success("验证成功。"); //return Success("验证成功。");
@@ -400,9 +400,9 @@ namespace Learun.Application.WebApi.Modules
} }
catch (Exception e) catch (Exception e)
{ {
return Fail("微信授权失败,请重试。"+e.Message);
return Fail("微信授权失败,请重试。" + e.Message);
} }
} }


/// <summary> /// <summary>


Loading…
Cancel
Save