完善微信小程序注释

This commit is contained in:
李运家 2024-09-16 17:18:46 +08:00
parent 96a9bf72ac
commit c219922f22

View File

@ -134,7 +134,7 @@ impl WechatSocial {
///
/// https://developers.weixin.qq.com/minigame/dev/api-backend/open-api/login/auth.checkSessionKey.html
/// https://developers.weixin.qq.com/miniprogram/dev/OpenApiDoc/user-login/checkSessionKey.html
/// todo 使用的hmac签名是否正确签名结果转换成字符串是否正确
/// todo 使用的hmac签名是否正确签名结果转换成字符串是否正确,目前未经验证
pub async fn check_session(&self, session_key: &str, open_id: &str) -> SocialResult<()> {
// let signature = Hmac::<Sha256>::new_from_slice(session.as_bytes()).expect("");
let mut mac =