jh-admin/addon/supply/event/OrderPay.php

17 lines
427 B
PHP
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
namespace addon\supply\event;
use addon\supply\model\order\OrderCreate;
use think\facade\Log;
class OrderPay
{
public function handle($order)
{
try {
(new OrderCreate())->orderPay($order);
} catch (\Exception $e) {
Log::debug('SSSS- api请求下单失败' . $e->getMessage() . $e->getFile() . $e->getLine());
}
return success(0, '下单触发');
}
}