fix(partner): resolve WeChat image picker auth denied on store create

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-07-03 15:32:53 +08:00
parent 30eb8ff8a6
commit 81413e4d08
6 changed files with 49 additions and 8 deletions
@@ -21,7 +21,8 @@ export class WechatController {
@Get('jssdk-config')
async jssdkConfig(@Query('url') url: string) {
if (!url) throw new BadRequestException('url 参数必填');
return this.wechat.createJssdkConfig(url);
const pageUrl = decodeURIComponent(url).split('#')[0];
return this.wechat.createJssdkConfig(pageUrl);
}
@Get('oauth-url')