feat: add owner to getUserByWechatId()

This commit is contained in:
Yang Luo
2023-06-21 20:54:19 +08:00
parent c391af4552
commit a3b0f1fc74
2 changed files with 3 additions and 3 deletions

View File

@ -794,7 +794,7 @@ func GetWechatMiniProgramToken(application *Application, code string, host strin
ErrorDescription: "the wechat mini program session is invalid",
}, nil
}
user, err := getUserByWechatId(openId, unionId)
user, err := getUserByWechatId(application.Organization, openId, unionId)
if err != nil {
return nil, nil, err
}