|
@@ -35,15 +35,16 @@ class Pay extends Base
|
|
|
$pay = \addons\epay\library\Service::checkNotify($paytype);
|
|
|
if (!$pay) {
|
|
|
echo '签名错误';
|
|
|
+ \think\Log::write('签名错误', 'epay',);
|
|
|
return;
|
|
|
}
|
|
|
$data = $pay->verify();
|
|
|
- try {
|
|
|
+ // try {
|
|
|
$payamount = $paytype == 'alipay' ? $data['total_amount'] : $data['total_fee'] / 100;
|
|
|
PayOperService::settle($data['out_trade_no'], $payamount, $paytype == 'alipay' ? $data['trade_no'] : $data['transaction_id']);
|
|
|
- } catch (\Exception $e) {
|
|
|
- \think\Log::write($e->getMessage(), 'epay');
|
|
|
- }
|
|
|
+ // } catch (\Exception $e) {
|
|
|
+ // \think\Log::write($e->getMessage(), 'epay');
|
|
|
+ // }
|
|
|
echo $pay->success();
|
|
|
}// pc 支付
|
|
|
elseif ($type == 'return') {
|