|
|
@@ -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); |
|
|
|