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-11-13 23:56:38 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
7ce7efc673301e14eef6fb5c453712174a947cbe
7ce7efc6
1 parent
b73a3033
1.使用谷歌服务账号进行验证
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
app/Payment/GooglePayment.php
app/Payment/GooglePayment.php
View file @
7ce7efc
...
...
@@ -188,7 +188,7 @@ class GooglePayment implements PaymentInterface
Log
::
error
(
"查无此订单"
);
return
false
;
}
switch
(
$data
[
'notificationType'
]){
switch
(
$data
[
'
subscriptionNotification'
][
'
notificationType'
]){
case
self
::
SUBSCRIPTION_PURCHASED
:
if
(
$resp
->
getPaymentState
()
==
1
)
$order
->
status
=
Order
::
DONE
;
/** 修改订单状态*/
...
...
@@ -267,7 +267,7 @@ class GooglePayment implements PaymentInterface
return
false
;
}
// ...
switch
(
$data
[
'notificationType'
]){
switch
(
$data
[
'
subscriptionNotification'
][
'
notificationType'
]){
case
self
::
ONE_TIME_PRODUCT_PURCHASED
:
case
self
::
ONE_TIME_PRODUCT_CANCELED
:
default
:
...
...
Please
register
or
login
to post a comment