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

This commit is contained in:
trop[bot] 2018-11-05 13:21:40 -08:00 committed by Shelley Vohr
parent ec6fe27fca
commit 53b871ecbd

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 "";
}