Skip to content

MiniMax CN region: Open Coding Plan button opens wrong URL #378

@redriver2006-debug

Description

@redriver2006-debug

Bug Description

When using MiniMax with the China mainland (platform.minimaxi.com) region selected, the "Open Coding Plan" button still opens the global URL (platform.minimax.io) instead of the CN domain.

This happens in two places:

  1. API token settings - "Open Coding Plan" button
  2. Cookie settings - "Open Coding Plan" button

Both buttons are hardcoded to open:
https://platform.minimax.io/user-center/payment/coding-plan?cycle_type=3

Fix

Change both buttons to use the region-aware URL that already exists in MiniMaxAPIRegion.codingPlanURL:

// Before (hardcoded):
if let url = URL(string: "https://platform.minimax.io/user-center/payment/coding-plan?cycle_type=3") {
    NSWorkspace.shared.open(url)
}

// After (region-aware):
NSWorkspace.shared.open(context.settings.minimaxAPIRegion.codingPlanURL)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions