fix: use NSURL path for receipt url (#15355)
This commit is contained in:
parent
32ea2b67f0
commit
c60745b8a3
1 changed files with 1 additions and 1 deletions
|
@ -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 "";
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue