Toggle navigation
Toggle navigation
This project
Loading...
Sign in
OnePoem
/
OnePoem-Server
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
李帅
2022-12-19 22:32:31 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
70d44ae9d3a3d1e40559235d467c0e29d4d93457
70d44ae9
1 parent
73d25c83
1.打印苹果日志
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
app/Payment/ApplePayment.php
app/Payment/ApplePayment.php
View file @
70d44ae
...
...
@@ -45,15 +45,19 @@ class ApplePayment implements PaymentInterface
Log
::
debug
(
print_r
(
$data
,
true
));
}
public
function
notifySandbox
(
$
all
)
public
function
notifySandbox
(
$
string
)
{
Log
::
debug
(
'sandbox返回的数据:===================='
);
Log
::
debug
(
print_r
(
$all
[
"signedPayload"
],
true
));
$data
=
base64_decode
(
$all
[
'signedPayload'
]);
Log
::
debug
(
print_r
(
$data
,
true
));
Log
::
debug
(
$string
);
$components
=
explode
(
'.'
,
$string
);
if
(
count
(
$components
)
<
3
){
Log
::
error
(
"jwt错误"
);
return
false
;
}
$header
=
json_decode
(
base64_decode
(
$components
[
0
]),
true
);
Log
::
debug
(
print_r
(
$header
,
true
));
}
}
\ No newline at end of file
...
...
Please
register
or
login
to post a comment