refactor(payment): 支付插件 - 宿主仅通过 RPC 包加载并保护订单版本
This commit is contained in:
1 parent
d6bbdbe27b
commit
38e715ea3f
45 files changed
+1584
-203
No files matched your search
@@ -34,6 +34,11 @@ func TestOfficialProtocolPackagesAreSelfContainedDeclarativePlugins(t *testing.T
|
||||
if err != nil {
|
||||
t.Fatalf("parse %s: %v", filepath.Base(path), err)
|
||||
}
|
||||
if len(pkg.Manifest.Contributes.PaymentProviders) > 0 {
|
||||
// Payment packages use the yingce.payment/v1 executable ABI rather than
|
||||
// the declarative AI provider contract covered by this catalog test.
|
||||
continue
|
||||
}
|
||||
if pkg.Manifest.APIVersion != "yingce.plugin/v2" {
|
||||
t.Fatalf("%s apiVersion = %q", filepath.Base(path), pkg.Manifest.APIVersion)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user