fix(partner): resolve WeChat image picker auth denied on store create
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user