Showing
1 changed file
with
1 additions
and
3 deletions
... | @@ -200,9 +200,7 @@ class GooglePayment implements PaymentInterface | ... | @@ -200,9 +200,7 @@ class GooglePayment implements PaymentInterface |
200 | //SUBSCRIPTION_REVOKED - 用户在到期时间之前已撤消订阅。 | 200 | //SUBSCRIPTION_REVOKED - 用户在到期时间之前已撤消订阅。 |
201 | //SUBSCRIPTION_EXPIRED - 订阅已到期。 | 201 | //SUBSCRIPTION_EXPIRED - 订阅已到期。 |
202 | 202 | ||
203 | - $data = base64_decode($string); | 203 | + $data = json_decode(base64_decode($string),true); |
204 | - Log::debug('base64解码数据:===================='); | ||
205 | - Log::debug(print_r($data,true)); | ||
206 | $packageName = $data['packageName']; | 204 | $packageName = $data['packageName']; |
207 | if (isset($data['subscriptionNotification'])) { | 205 | if (isset($data['subscriptionNotification'])) { |
208 | $subscriptionId = $data['subscriptionNotification']['subscriptionId']; | 206 | $subscriptionId = $data['subscriptionNotification']['subscriptionId']; | ... | ... |
-
Please register or login to post a comment