更正v1.3

This commit is contained in:
bluesea 2024-04-03 19:35:05 +08:00
parent af1d9644a7
commit 31cc0aea96
3 changed files with 15 additions and 12 deletions

View File

@ -659,10 +659,10 @@
filePath = "SwiftProject/CCKit/SKUPay/SKUPay.swift"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "182"
endingLineNumber = "182"
landmarkName = "paymentQueueRestoreCompletedTransactionsFinished(_:)"
landmarkType = "7">
startingLineNumber = "185"
endingLineNumber = "185"
landmarkName = "SKUPay"
landmarkType = "3">
</BreakpointContent>
</BreakpointProxy>
<BreakpointProxy
@ -675,8 +675,8 @@
filePath = "SwiftProject/CCKit/SKUPay/SKUPay.swift"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "149"
endingLineNumber = "149"
startingLineNumber = "152"
endingLineNumber = "152"
landmarkName = "paymentQueue(_:updatedTransactions:)"
landmarkType = "7">
</BreakpointContent>

View File

@ -110,12 +110,15 @@ class SKUPay:NSObject, SKRequestDelegate,SKProductsRequestDelegate,SKPaymentTran
//...
func showToast(value:Bool) {
if value {
SVProgressHUD.show(withStatus: NSLocalizedString("支付中...", comment: ""))
}
else {
SVProgressHUD.dismiss()
DispatchQueue.main.async {
if value {
SVProgressHUD.show(withStatus: NSLocalizedString("支付中...", comment: ""))
}
else {
SVProgressHUD.dismiss()
}
}
}
@ -157,7 +160,7 @@ class SKUPay:NSObject, SKRequestDelegate,SKProductsRequestDelegate,SKPaymentTran
print("updatedTransactions ..\(spt)")
}
}
showToast(value: false)
print("updatedTransactions ..")
}