fix(ci): remove local replace directive and revert sora.NewWebClient

The local go.mod replace directive for go-sora2api pointed to a Windows
path which breaks CI on Linux. Revert sora.NewWebClient back to sora.New
since the remote module doesn't have this method yet.
This commit is contained in:
erio committed 2026-03-08 18:25:45 +08:00
1 parent 0bf7111e27
commit 8abaea43a8
3 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -768,7 +768,7 @@ func (c *SoraSDKClient) getSDKClient(account *Account) (*sora.Client, error) {
return cli, nil
}
}
client, err := sora.NewWebClient(proxyURL)
client, err := sora.New(proxyURL)
if err != nil {
return nil, fmt.Errorf("创建 Sora SDK 客户端失败: %w", err)
}