nizongfeng 3 years ago
parent
commit
09210d1562
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      addons/unishop/controller/Pay.php

+ 3
- 0
addons/unishop/controller/Pay.php View File

@@ -169,6 +169,9 @@ class Pay extends Base
Hook::add('paid_success', 'addons\\unishop\\behavior\\Order');
$payTypeString = $paytype == 'alipay' ? \addons\unishop\model\Order::PAY_ALIPAY : \addons\unishop\model\Order::PAY_WXPAY;
Hook::listen('paid_success', $order, ['pay_type' => $payTypeString]);
//日志
$string.="成功".PHP_EOL;
file_put_contents(ROOT_PATH . '/runtime/log/' . date('Ym') ."/pay_".date("d"). '.log',$string , FILE_APPEND);
} catch (Exception $e) {
$string.=$e->getMessage() . PHP_EOL;
file_put_contents(ROOT_PATH . '/runtime/log/' . date('Ym') ."/pay_".date("d"). '.log',$string , FILE_APPEND);


Loading…
Cancel
Save