jh-admin/addon/ali1688/event/OrderCreate.php

16 lines
402 B
PHP
Raw 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\ali1688\event;
use addon\ali1688\model\Order;
use think\facade\Log;
class OrderCreate
{
public function handle($order)
{
try {
(new Order($order['site_id']))->orderCreate($order);
} catch (\Exception $e) {
Log::debug('1688 - api请求下单失败' . $e->getMessage());
}
return success(0, '下单触发');
}
}