fix: use NSURL path for receipt url (#15355)

This commit is contained in:
Shelley Vohr 2018-11-05 09:49:51 -08:00 committed by GitHub
parent 32ea2b67f0
commit c60745b8a3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -167,7 +167,7 @@ void FinishTransactionByDate(const std::string& date) {
std::string GetReceiptURL() {
NSURL* receiptURL = [[NSBundle mainBundle] appStoreReceiptURL];
if (receiptURL != nil) {
return [[receiptURL absoluteString] UTF8String];
return std::string([[receiptURL path] UTF8String]);
} else {
return "";
}