李帅

1.打印苹果日志

......@@ -45,15 +45,19 @@ class ApplePayment implements PaymentInterface
Log::debug(print_r($data,true));
}
public function notifySandbox($all)
public function notifySandbox($string)
{
Log::debug('sandbox返回的数据:====================');
Log::debug(print_r($all["signedPayload"],true));
$data = base64_decode($all['signedPayload']);
Log::debug(print_r($data,true));
Log::debug($string);
$components = explode('.',$string);
if (count($components) < 3){
Log::error("jwt错误");
return false;
}
$header = json_decode(base64_decode($components[0]),true);
Log::debug(print_r($header,true));
}
}
\ No newline at end of file
......