收入验证 如果您已启用购买验证,则必须随购买事件一同发送额外信息用于验证。Adjust 服务器收到ADJEvent对象中的信息后,会将此信息转发至 Apple 验证购买。 要验证购买,请使用您的事件识别码实例化一个ADJEvent对象并设置以下属性: transactionId (NSString):已成功完成交易的 transactionIdentifier 值。 productId (NSString):已被成功售出货品的产品识别码 receipt (NSData): 包含成功交易信息的签名收据。 let receiptURL = Bundle.main.appStoreReceiptURL;let receipt = try Data(contentsOf: receiptURL, options: .alwaysMapped) let event = ADJEvent(eventToken: "abc123")event?.setRevenue(6.0, currency: "EUR");event?.setTransactionId("transaction-id");event?.setProductId("product-id");event?.setReceipt(receipt);Adjust.trackEvent(event) NSURL *receiptURL = [[NSBundle mainBundle] appStoreReceiptURL];NSData *receipt = [NSData dataWithContentsOfURL:receiptURL];ADJEvent *event = [ADJEvent eventWithEventToken::@"your-event-token"];[event setRevenue:6.0 currency:@"EUR"];[event setTransactionId:@"transaction-id"];[event setProductId:@"product-id"];[event setReceipt:receipt];[Adjust trackEvent:event];