diff --git a/AppleParty/AppleParty/AppListView/InAppPurchseView/APUploadIAPListVC.swift b/AppleParty/AppleParty/AppListView/InAppPurchseView/APUploadIAPListVC.swift index 226df81..e89e72f 100644 --- a/AppleParty/AppleParty/AppListView/InAppPurchseView/APUploadIAPListVC.swift +++ b/AppleParty/AppleParty/AppListView/InAppPurchseView/APUploadIAPListVC.swift @@ -623,6 +623,11 @@ extension APUploadIAPListVC { // 3、查看是否存在订阅商品,不存在就创建,存在就更新 let subs = subscriptions.filter({ $0.attributes?.productID == product.productId }) if let sub = subs.first { + if let state = sub.attributes?.state, state != .missingMetadata { + ascAPI.addMessage("订阅商品已经存在:\(product.productId),当前状态:\(state.rawValue),跳过更新信息...") + return + } + ascAPI.addMessage("订阅商品已经存在:\(product.productId) ,开始更新信息中...") // 0. 审核备注如果原来有值,而新字段无值,则使用原值 var product = product