【程序目录】优化代码

This commit is contained in:
吴昊天 2022-12-16 16:59:45 +08:00
parent 8099b0e9f6
commit 9538a59d3c

View File

@ -29,18 +29,20 @@ class PrintJob extends BaseJobs
/**
* 小票打印
* @param $switch
* @param $adminList
* @param $type
* @param $configData
* @param $order
* @return bool
* @param $product
* @return bool|void
*/
public function doJob($type, $configdata, $order, $product)
public function doJob($type, $configData, $order, $product)
{
try {
$printer = new Printer($type, $configdata);
$printer = new Printer($type, $configData);
$printer->setPrinterContent([
'name' => sys_config('site_name'),
'url' => sys_config('site_url'),
'orderInfo' => is_object($order) ? $order->toArray() : $order,
'product' => $product
])->startPrinter();