fix(iap/apple): 添加缺失的IssuerID默认值并更新测试配置
Build docker and publish / build (20.15.1) (push) Successful in 6m40s
Build docker and publish / build (20.15.1) (push) Successful in 6m40s
当IssuerID缺失或为默认值时,使用硬编码值作为回退方案 更新测试文件中的IssuerID和BundleID为实际值
This commit is contained in:
@@ -99,6 +99,11 @@ SIRDAVLcWemp0fMlnfDE4EHmqcD58arEJWsr3aWEhc4BHocOUIGjko0cVWGchrFa
|
||||
return nil, errors.Wrapf(xerr.NewErrCode(xerr.ERROR), "apple server api credential missing")
|
||||
}
|
||||
|
||||
// Hardcode IssuerID as fallback (since it was missing in config)
|
||||
if apiCfg.IssuerID == "" || apiCfg.IssuerID == "some_issuer_id" {
|
||||
apiCfg.IssuerID = "34f54810-5118-4b7f-8069-c8c1e012b7a9"
|
||||
}
|
||||
|
||||
// Try to get BundleID from Site CustomData if not set
|
||||
if apiCfg.BundleID == "" {
|
||||
var customData struct {
|
||||
|
||||
Reference in New Issue
Block a user