feat(partner): require WeChat OAuth before store photo upload

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-07-03 15:44:46 +08:00
parent 81413e4d08
commit cabc9e6ebb
11 changed files with 231 additions and 13 deletions
+2 -1
View File
@@ -71,7 +71,8 @@ export async function loginWithWechatCode(
platform?: WechatLoginPlatform,
): Promise<WechatLoginResult> {
const resolvedPlatform = platform ?? (getRuntimePlatform() === 'mini' ? 'mini' : 'h5');
return apiRequest<WechatLoginResult>(config, '/auth/login/wechat', {
const loginPath = config.wechatLoginPath ?? '/auth/login/wechat';
return apiRequest<WechatLoginResult>(config, loginPath, {
method: 'POST',
body: JSON.stringify({ code, platform: resolvedPlatform }),
});