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();
|
final unsignedTasks = await _contractSigningService.getUnsignedTasks();
|
||||||
return unsignedTasks.isNotEmpty;
|
return unsignedTasks.isNotEmpty;
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
debugPrint('[ContractCheckService] 检查待签署合同失败: $e');
|
// debugPrint('[ContractCheckService] 检查待签署合同失败: $e');
|
||||||
// 检查失败时不阻止用户使用 App
|
// 检查失败时不阻止用户使用 App
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
@ -62,7 +62,7 @@ class ContractCheckService {
|
||||||
|
|
||||||
// 2. 如果有待签署的合同,直接返回(不需要再检查 KYC)
|
// 2. 如果有待签署的合同,直接返回(不需要再检查 KYC)
|
||||||
if (hasPending) {
|
if (hasPending) {
|
||||||
debugPrint('[ContractCheckService] 检测到 ${unsignedTasks.length} 个待签署合同');
|
// debugPrint('[ContractCheckService] 检测到 ${unsignedTasks.length} 个待签署合同');
|
||||||
return ContractCheckResult(
|
return ContractCheckResult(
|
||||||
hasPendingContracts: true,
|
hasPendingContracts: true,
|
||||||
requiresKyc: false,
|
requiresKyc: false,
|
||||||
|
|
@ -79,7 +79,7 @@ class ContractCheckService {
|
||||||
paidOrderCount: kycResult.paidOrderCount,
|
paidOrderCount: kycResult.paidOrderCount,
|
||||||
);
|
);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
debugPrint('[ContractCheckService] 综合检查失败: $e');
|
// debugPrint('[ContractCheckService] 综合检查失败: $e');
|
||||||
// 检查失败时不阻止用户使用 App
|
// 检查失败时不阻止用户使用 App
|
||||||
return ContractCheckResult(
|
return ContractCheckResult(
|
||||||
hasPendingContracts: false,
|
hasPendingContracts: false,
|
||||||
|
|
@ -94,7 +94,7 @@ class ContractCheckService {
|
||||||
final unsignedTasks = await _contractSigningService.getUnsignedTasks();
|
final unsignedTasks = await _contractSigningService.getUnsignedTasks();
|
||||||
return unsignedTasks.length;
|
return unsignedTasks.length;
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
debugPrint('[ContractCheckService] 获取待签署合同数量失败: $e');
|
// debugPrint('[ContractCheckService] 获取待签署合同数量失败: $e');
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -103,7 +103,7 @@ class _PendingActionsPageState extends ConsumerState<PendingActionsPage> {
|
||||||
// 预检查:检查操作是否已经完成
|
// 预检查:检查操作是否已经完成
|
||||||
final alreadyCompleted = await _checkIfAlreadyCompleted(action);
|
final alreadyCompleted = await _checkIfAlreadyCompleted(action);
|
||||||
if (alreadyCompleted) {
|
if (alreadyCompleted) {
|
||||||
debugPrint('[PendingActionsPage] 操作 ${action.actionCode} 已完成,自动标记');
|
// debugPrint('[PendingActionsPage] 操作 ${action.actionCode} 已完成,自动标记');
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -168,7 +168,7 @@ class _PendingActionsPageState extends ConsumerState<PendingActionsPage> {
|
||||||
final kycService = ref.read(kycServiceProvider);
|
final kycService = ref.read(kycServiceProvider);
|
||||||
final kycStatus = await kycService.getKycStatus();
|
final kycStatus = await kycService.getKycStatus();
|
||||||
if (kycStatus.isCompleted) {
|
if (kycStatus.isCompleted) {
|
||||||
debugPrint('[PendingActionsPage] KYC 已完成,跳过此操作');
|
// debugPrint('[PendingActionsPage] KYC 已完成,跳过此操作');
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
|
@ -178,7 +178,7 @@ class _PendingActionsPageState extends ConsumerState<PendingActionsPage> {
|
||||||
final kycService = ref.read(kycServiceProvider);
|
final kycService = ref.read(kycServiceProvider);
|
||||||
final kycStatus = await kycService.getKycStatus();
|
final kycStatus = await kycService.getKycStatus();
|
||||||
if (kycStatus.phoneVerified) {
|
if (kycStatus.phoneVerified) {
|
||||||
debugPrint('[PendingActionsPage] 手机号已绑定,跳过此操作');
|
// debugPrint('[PendingActionsPage] 手机号已绑定,跳过此操作');
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
|
@ -188,7 +188,7 @@ class _PendingActionsPageState extends ConsumerState<PendingActionsPage> {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
debugPrint('[PendingActionsPage] 预检查失败: $e');
|
// debugPrint('[PendingActionsPage] 预检查失败: $e');
|
||||||
// 检查失败时不跳过,让用户手动完成
|
// 检查失败时不跳过,让用户手动完成
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue