chore: temporarily disable KYC and contract check logs
Comment out debugPrint statements in pending actions and contract check services to reduce log noise during development. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
789d921fd7
commit
f7913cd04e
|
|
@ -43,7 +43,7 @@ class ContractCheckService {
|
|||
final unsignedTasks = await _contractSigningService.getUnsignedTasks();
|
||||
return unsignedTasks.isNotEmpty;
|
||||
} catch (e) {
|
||||
debugPrint('[ContractCheckService] 检查待签署合同失败: $e');
|
||||
// debugPrint('[ContractCheckService] 检查待签署合同失败: $e');
|
||||
// 检查失败时不阻止用户使用 App
|
||||
return false;
|
||||
}
|
||||
|
|
@ -62,7 +62,7 @@ class ContractCheckService {
|
|||
|
||||
// 2. 如果有待签署的合同,直接返回(不需要再检查 KYC)
|
||||
if (hasPending) {
|
||||
debugPrint('[ContractCheckService] 检测到 ${unsignedTasks.length} 个待签署合同');
|
||||
// debugPrint('[ContractCheckService] 检测到 ${unsignedTasks.length} 个待签署合同');
|
||||
return ContractCheckResult(
|
||||
hasPendingContracts: true,
|
||||
requiresKyc: false,
|
||||
|
|
@ -79,7 +79,7 @@ class ContractCheckService {
|
|||
paidOrderCount: kycResult.paidOrderCount,
|
||||
);
|
||||
} catch (e) {
|
||||
debugPrint('[ContractCheckService] 综合检查失败: $e');
|
||||
// debugPrint('[ContractCheckService] 综合检查失败: $e');
|
||||
// 检查失败时不阻止用户使用 App
|
||||
return ContractCheckResult(
|
||||
hasPendingContracts: false,
|
||||
|
|
@ -94,7 +94,7 @@ class ContractCheckService {
|
|||
final unsignedTasks = await _contractSigningService.getUnsignedTasks();
|
||||
return unsignedTasks.length;
|
||||
} catch (e) {
|
||||
debugPrint('[ContractCheckService] 获取待签署合同数量失败: $e');
|
||||
// debugPrint('[ContractCheckService] 获取待签署合同数量失败: $e');
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -103,7 +103,7 @@ class _PendingActionsPageState extends ConsumerState<PendingActionsPage> {
|
|||
// 预检查:检查操作是否已经完成
|
||||
final alreadyCompleted = await _checkIfAlreadyCompleted(action);
|
||||
if (alreadyCompleted) {
|
||||
debugPrint('[PendingActionsPage] 操作 ${action.actionCode} 已完成,自动标记');
|
||||
// debugPrint('[PendingActionsPage] 操作 ${action.actionCode} 已完成,自动标记');
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
@ -168,7 +168,7 @@ class _PendingActionsPageState extends ConsumerState<PendingActionsPage> {
|
|||
final kycService = ref.read(kycServiceProvider);
|
||||
final kycStatus = await kycService.getKycStatus();
|
||||
if (kycStatus.isCompleted) {
|
||||
debugPrint('[PendingActionsPage] KYC 已完成,跳过此操作');
|
||||
// debugPrint('[PendingActionsPage] KYC 已完成,跳过此操作');
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
|
@ -178,7 +178,7 @@ class _PendingActionsPageState extends ConsumerState<PendingActionsPage> {
|
|||
final kycService = ref.read(kycServiceProvider);
|
||||
final kycStatus = await kycService.getKycStatus();
|
||||
if (kycStatus.phoneVerified) {
|
||||
debugPrint('[PendingActionsPage] 手机号已绑定,跳过此操作');
|
||||
// debugPrint('[PendingActionsPage] 手机号已绑定,跳过此操作');
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
|
@ -188,7 +188,7 @@ class _PendingActionsPageState extends ConsumerState<PendingActionsPage> {
|
|||
return false;
|
||||
}
|
||||
} catch (e) {
|
||||
debugPrint('[PendingActionsPage] 预检查失败: $e');
|
||||
// debugPrint('[PendingActionsPage] 预检查失败: $e');
|
||||
// 检查失败时不跳过,让用户手动完成
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue