Files
shop-platform/src/addon/printer/event/MemberRechargeOrderPay.php
2025-12-02 15:36:42 +08:00

24 lines
666 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\printer\event;
use app\model\system\Cron;
use think\facade\Log;
/**
* 充值完成
*/
class MemberRechargeOrderPay
{
public function handle($param)
{
// 收银台主动调用小票打印接口了,执行回调不需要再打印了
if (!empty($param[ 'order_from' ]) && $param[ 'order_from' ] == 'cashier') {
return;
}
Log::write('会员充值完成小票打印_MemberRechargeOrderPay' . json_encode($param));
$cron = new Cron();
$cron->addCron(1, 0, "充值小票打印", "MemberRechargeOrderPayPrinter", time(), $param[ 'order_id' ]);
}
}