完善登录逻辑和个人资料完善
This commit is contained in:
@@ -4656,6 +4656,17 @@ class SupabaseService {
|
||||
}
|
||||
|
||||
private normalizeServiceStatus(status: string): string {
|
||||
if (status == 'ORDER_CREATED') return 'created'
|
||||
if (status == 'ORDER_ASSIGNED') return 'assigned'
|
||||
if (status == 'ORDER_ACCEPTED') return 'accepted'
|
||||
if (status == 'ORDER_REJECTED') return 'rejected'
|
||||
if (status == 'ORDER_CHECKED_IN') return 'arrived'
|
||||
if (status == 'ORDER_IN_SERVICE') return 'in_service'
|
||||
if (status == 'ORDER_COMPLETED' || status == 'ACCEPTANCE_PENDING') return 'pending_acceptance'
|
||||
if (status == 'ACCEPTED') return 'accepted_by_user'
|
||||
if (status == 'SETTLEMENT_READY' || status == 'ARCHIVED') return 'settled'
|
||||
if (status == 'ORDER_CANCELLED') return 'cancelled'
|
||||
if (status == 'ORDER_EXCEPTION' || status == 'ACCEPTANCE_REJECTED') return 'exception'
|
||||
if (status == 'created' || status == 'submitted') return 'created'
|
||||
if (status == 'paid') return 'paid'
|
||||
if (status == 'assigned' || status == 'pending_dispatch' || status == 'pending_assignment') return 'assigned'
|
||||
|
||||
Reference in New Issue
Block a user