fix(wallet-service): 添加验证码验证调试日志并修复布尔值比较

- 添加完整响应数据日志以便调试
- 使用严格比较 === true 代替 ?? false

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
hailin 2025-12-22 04:06:40 -08:00
parent ac4bd46c13
commit 9ae1c1cbdb
1 changed files with 2 additions and 1 deletions

View File

@ -150,7 +150,8 @@ export class IdentityClientService {
},
);
const valid = response.data?.valid ?? false;
this.logger.log(`提取短信验证码响应: userId=${userId}, status=${response.status}, data=${JSON.stringify(response.data)}`);
const valid = response.data?.valid === true;
this.logger.log(`提取短信验证码验证结果: userId=${userId}, valid=${valid}`);
return valid;