mirror of
https://github.com/Wei-Shaw/sub2api.git
synced 2026-11-20 15:06:36 +00:00
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:
1 parent
0bf7111e27
commit
8abaea43a8
3 files changed
+3
-3
No files matched your search
@@ -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)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user