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

26 lines
764 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
/**
* SaaSMall商城系统 - 团队十年电商经验汇集巨献!
* =========================================================
* Copy right 2019-2029 成都SAAS云科技有限公司, 保留所有权利。
* ----------------------------------------------
* 官方网址: https://www.gobuysaas.com
* =========================================================
*/
namespace addon\ali1688\event;
use addon\ali1688\model\Order;
use think\facade\Log;
class OrderPay
{
public function handle($order)
{
try {
(new Order($order['site_id']))->orderPay($order);
} catch (\Exception $e) {
Log::debug('1688 - api请求下单失败' . $e->getMessage());
}
return success(0, '下单触发');
}
}