1
This commit is contained in:
parent
c327c68f3e
commit
1f431d633f
@ -623,6 +623,11 @@ extension APUploadIAPListVC {
|
|||||||
// 3、查看是否存在订阅商品,不存在就创建,存在就更新
|
// 3、查看是否存在订阅商品,不存在就创建,存在就更新
|
||||||
let subs = subscriptions.filter({ $0.attributes?.productID == product.productId })
|
let subs = subscriptions.filter({ $0.attributes?.productID == product.productId })
|
||||||
if let sub = subs.first {
|
if let sub = subs.first {
|
||||||
|
if let state = sub.attributes?.state, state != .missingMetadata {
|
||||||
|
ascAPI.addMessage("订阅商品已经存在:\(product.productId),当前状态:\(state.rawValue),跳过更新信息...")
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
ascAPI.addMessage("订阅商品已经存在:\(product.productId) ,开始更新信息中...")
|
ascAPI.addMessage("订阅商品已经存在:\(product.productId) ,开始更新信息中...")
|
||||||
// 0. 审核备注如果原来有值,而新字段无值,则使用原值
|
// 0. 审核备注如果原来有值,而新字段无值,则使用原值
|
||||||
var product = product
|
var product = product
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user