Commit f5a4f448 authored by liudong1993's avatar liudong1993

1

parent 59875dfd
......@@ -78,7 +78,7 @@ namespace EduSpider.WebApi.Controllers
}
#region 获取进阶思维小程序端token
BaseUserInfo UserInfo = new() { BaseUserId = model.Id };
BaseUserInfo UserInfo = new() { BaseUserId = model.UniqueId };
string token = JwtHelper.CreateToken(UserInfo, Config.JwtSecretKey, Config.JwtExpirTime);
#endregion
......@@ -94,7 +94,7 @@ namespace EduSpider.WebApi.Controllers
UserMobile = model.Account,
UserIcon = model.UserIcon,
};
Cache.User.UserReidsCache.UserInfoSet(Cache.CacheKey.User_Login_Key + model.Id, obj, Config.JwtExpirTime);
Cache.User.UserReidsCache.UserInfoSet(Cache.CacheKey.User_Login_Key + model.UniqueId, obj, Config.JwtExpirTime);
return ApiResult.Success(data: obj);
}
}
......@@ -152,7 +152,7 @@ namespace EduSpider.WebApi.Controllers
}
#region 获取进阶思维小程序端token
BaseUserInfo UserInfo = new() { BaseUserId = model.Id };
BaseUserInfo UserInfo = new() { BaseUserId = model.UniqueId };
string token = JwtHelper.CreateToken(UserInfo, Config.JwtSecretKey, Config.JwtExpirTime);
#endregion
......@@ -168,7 +168,7 @@ namespace EduSpider.WebApi.Controllers
UserMobile = model.Account,
UserIcon = model.UserIcon,
};
Cache.User.UserReidsCache.UserInfoSet(Cache.CacheKey.User_Login_Key + model.Id, obj, Config.JwtExpirTime);
Cache.User.UserReidsCache.UserInfoSet(Cache.CacheKey.User_Login_Key + model.UniqueId, obj, Config.JwtExpirTime);
return ApiResult.Success(data: obj);
}
}
......@@ -332,7 +332,7 @@ namespace EduSpider.WebApi.Controllers
}
#region 获取进阶思维小程序端token
BaseUserInfo UserInfo = new() { BaseUserId = model.Id };
BaseUserInfo UserInfo = new() { BaseUserId = model.UniqueId };
string token = JwtHelper.CreateToken(UserInfo, Config.JwtSecretKey, Config.JwtExpirTime);
#endregion
......@@ -348,7 +348,7 @@ namespace EduSpider.WebApi.Controllers
UserMobile = model.Account,
UserIcon = model.UserIcon,
};
Cache.User.UserReidsCache.UserInfoSet(Cache.CacheKey.User_Login_Key + model.Id, obj, Config.JwtExpirTime);
Cache.User.UserReidsCache.UserInfoSet(Cache.CacheKey.User_Login_Key + model.UniqueId, obj, Config.JwtExpirTime);
return ApiResult.Success(data: obj);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment