|
@@ -17,7 +17,7 @@ class AlipayController
|
|
|
public function index(Request $request)
|
|
|
{
|
|
|
$params = $request->all();
|
|
|
- \support\Log::info("开始获取支付宝支付参数",$params);
|
|
|
+ \support\Log::info("开始获取支付宝支付参数", $params);
|
|
|
|
|
|
if (!isset($params['order_id'])) {
|
|
|
return json_fail('参数异常');
|
|
@@ -63,19 +63,19 @@ class AlipayController
|
|
|
}
|
|
|
|
|
|
Db::commit();
|
|
|
- \support\Log::info("支付宝支付参数获取成功");
|
|
|
+ \support\Log::info("支付宝支付参数获取成功", ['result' => $result]);
|
|
|
return json_success('', $result);
|
|
|
- }catch (\support\exception\BusinessException $e){
|
|
|
+ } catch (\support\exception\BusinessException $e) {
|
|
|
Db::rollBack();
|
|
|
- \support\Log::error("支付宝支付参数获取失败",['msg'=>$e->getMessage()]);
|
|
|
+ \support\Log::error("支付宝支付参数获取失败", ['msg' => $e->getMessage()]);
|
|
|
return json_fail($e->getMessage());
|
|
|
} catch (PayException $e) {
|
|
|
Db::rollBack();
|
|
|
- \support\Log::error("支付宝支付参数获取失败",['msg'=>$e->getMessage()]);
|
|
|
+ \support\Log::error("支付宝支付参数获取失败", ['msg' => $e->getMessage()]);
|
|
|
return json_fail($e->getMessage());
|
|
|
} catch (\Exception $e) {
|
|
|
Db::rollBack();
|
|
|
- \support\Log::error("支付宝支付参数获取失败",['msg'=>$e->getMessage()]);
|
|
|
+ \support\Log::error("支付宝支付参数获取失败", ['msg' => $e->getMessage()]);
|
|
|
return json_fail('下单失败:' . $e->getMessage());
|
|
|
}
|
|
|
|