李帅

1.使用谷歌服务账号进行验证

...@@ -188,7 +188,7 @@ class GooglePayment implements PaymentInterface ...@@ -188,7 +188,7 @@ class GooglePayment implements PaymentInterface
188 Log::error("查无此订单"); 188 Log::error("查无此订单");
189 return false; 189 return false;
190 } 190 }
191 - switch ($data['notificationType']){ 191 + switch ($data['subscriptionNotification']['notificationType']){
192 case self::SUBSCRIPTION_PURCHASED: 192 case self::SUBSCRIPTION_PURCHASED:
193 if ($resp->getPaymentState() == 1) $order->status = Order::DONE; 193 if ($resp->getPaymentState() == 1) $order->status = Order::DONE;
194 /** 修改订单状态*/ 194 /** 修改订单状态*/
...@@ -267,7 +267,7 @@ class GooglePayment implements PaymentInterface ...@@ -267,7 +267,7 @@ class GooglePayment implements PaymentInterface
267 return false; 267 return false;
268 } 268 }
269 // ... 269 // ...
270 - switch ($data['notificationType']){ 270 + switch ($data['subscriptionNotification']['notificationType']){
271 case self::ONE_TIME_PRODUCT_PURCHASED : 271 case self::ONE_TIME_PRODUCT_PURCHASED :
272 case self::ONE_TIME_PRODUCT_CANCELED : 272 case self::ONE_TIME_PRODUCT_CANCELED :
273 default: 273 default:
......