李帅

1.打印paypal token

...@@ -40,6 +40,7 @@ class PaypalPayment implements PaymentInterface ...@@ -40,6 +40,7 @@ class PaypalPayment implements PaymentInterface
40 $redis = Redis::connection(); 40 $redis = Redis::connection();
41 $access_token = $redis->get('paypal:access_token'); 41 $access_token = $redis->get('paypal:access_token');
42 if ($access_token){ 42 if ($access_token){
43 + Log::channel('daily')->debug($access_token);
43 $this->accessToken = $access_token; 44 $this->accessToken = $access_token;
44 }else{ 45 }else{
45 $client = new Client([ 46 $client = new Client([
...@@ -56,7 +57,7 @@ class PaypalPayment implements PaymentInterface ...@@ -56,7 +57,7 @@ class PaypalPayment implements PaymentInterface
56 $body = $response->getBody(); 57 $body = $response->getBody();
57 $content = json_decode($body->getContents(),true); 58 $content = json_decode($body->getContents(),true);
58 $this->accessToken = $content['access_token']; 59 $this->accessToken = $content['access_token'];
59 - 60 + Log::channel('daily')->debug($content['access_token']);
60 $redis->setex('paypal:access_token',$content['expires_in'],$content['access_token']); 61 $redis->setex('paypal:access_token',$content['expires_in'],$content['access_token']);
61 } 62 }
62 }catch (\Exception $exception){ 63 }catch (\Exception $exception){
......