fix: use NSURL path for receipt url (#15573)
This commit is contained in:
parent
ec6fe27fca
commit
53b871ecbd
1 changed files with 1 additions and 1 deletions
|
@ -167,7 +167,7 @@ void FinishTransactionByDate(const std::string& date) {
|
||||||
std::string GetReceiptURL() {
|
std::string GetReceiptURL() {
|
||||||
NSURL* receiptURL = [[NSBundle mainBundle] appStoreReceiptURL];
|
NSURL* receiptURL = [[NSBundle mainBundle] appStoreReceiptURL];
|
||||||
if (receiptURL != nil) {
|
if (receiptURL != nil) {
|
||||||
return [[receiptURL absoluteString] UTF8String];
|
return std::string([[receiptURL path] UTF8String]);
|
||||||
} else {
|
} else {
|
||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue