李帅

1.打印苹果日志

......@@ -111,9 +111,9 @@ class PayController extends Controller
$all = $request->all();
if ($service == 'apple') {
$factory->init($service)->notify('');
$factory->init($service)->notify($all['signedPayload']);
}elseif ($service == 'apple-sandbox'){
$factory->init($service)->notifySandbox($all);
$factory->init($service)->notifySandbox($all['signedPayload']);
} else {
$factory->init($service)->notify($all['message']['data']);
}
......
......@@ -47,10 +47,10 @@ class ApplePayment implements PaymentInterface
public function notifySandbox($all)
{
Log::debug(print_r($all,true));
Log::debug('sandbox返回的数据:====================');
$data = json_decode(base64_decode($all['signedPayload']),true);
Log::debug(print_r($all["signedPayload"],true));
$data = base64_decode($all['signedPayload']);
Log::debug(print_r($data,true));
......