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:16:21 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
73d25c838c1b8c8ac99e210aefe732e1f3ccea3d
73d25c83
1 parent
4835ed46
1.打印苹果日志
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
app/Http/Controllers/V1/PayController.php
app/Payment/ApplePayment.php
app/Http/Controllers/V1/PayController.php
View file @
73d25c8
...
...
@@ -111,9 +111,9 @@ class PayController extends Controller
$all
=
$request
->
all
();
if
(
$service
==
'apple'
)
{
$factory
->
init
(
$service
)
->
notify
(
''
);
$factory
->
init
(
$service
)
->
notify
(
$all
[
'signedPayload'
]
);
}
elseif
(
$service
==
'apple-sandbox'
){
$factory
->
init
(
$service
)
->
notifySandbox
(
$all
);
$factory
->
init
(
$service
)
->
notifySandbox
(
$all
[
'signedPayload'
]
);
}
else
{
$factory
->
init
(
$service
)
->
notify
(
$all
[
'message'
][
'data'
]);
}
...
...
app/Payment/ApplePayment.php
View file @
73d25c8
...
...
@@ -47,10 +47,10 @@ class ApplePayment implements PaymentInterface
public
function
notifySandbox
(
$all
)
{
Log
::
debug
(
print_r
(
$all
,
true
));
Log
::
debug
(
'sandbox返回的数据:===================='
);
$data
=
json_decode
(
base64_decode
(
$all
[
'signedPayload'
]),
true
);
Log
::
debug
(
print_r
(
$all
[
"signedPayload"
],
true
));
$data
=
base64_decode
(
$all
[
'signedPayload'
]);
Log
::
debug
(
print_r
(
$data
,
true
));
...
...
Please
register
or
login
to post a comment