Showing
2 changed files
with
5 additions
and
5 deletions
... | @@ -111,9 +111,9 @@ class PayController extends Controller | ... | @@ -111,9 +111,9 @@ class PayController extends Controller |
111 | $all = $request->all(); | 111 | $all = $request->all(); |
112 | 112 | ||
113 | if ($service == 'apple') { | 113 | if ($service == 'apple') { |
114 | - $factory->init($service)->notify(''); | 114 | + $factory->init($service)->notify($all['signedPayload']); |
115 | }elseif ($service == 'apple-sandbox'){ | 115 | }elseif ($service == 'apple-sandbox'){ |
116 | - $factory->init($service)->notifySandbox($all); | 116 | + $factory->init($service)->notifySandbox($all['signedPayload']); |
117 | } else { | 117 | } else { |
118 | $factory->init($service)->notify($all['message']['data']); | 118 | $factory->init($service)->notify($all['message']['data']); |
119 | } | 119 | } | ... | ... |
... | @@ -47,10 +47,10 @@ class ApplePayment implements PaymentInterface | ... | @@ -47,10 +47,10 @@ class ApplePayment implements PaymentInterface |
47 | 47 | ||
48 | public function notifySandbox($all) | 48 | public function notifySandbox($all) |
49 | { | 49 | { |
50 | - Log::debug(print_r($all,true)); | ||
51 | - | ||
52 | Log::debug('sandbox返回的数据:===================='); | 50 | Log::debug('sandbox返回的数据:===================='); |
53 | - $data = json_decode(base64_decode($all['signedPayload']),true); | 51 | + Log::debug(print_r($all["signedPayload"],true)); |
52 | + | ||
53 | + $data = base64_decode($all['signedPayload']); | ||
54 | Log::debug(print_r($data,true)); | 54 | Log::debug(print_r($data,true)); |
55 | 55 | ||
56 | 56 | ... | ... |
-
Please register or login to post a comment