mirror of
https://github.com/crmeb/CRMEB.git
synced 2026-11-06 01:40:37 +00:00
【程序目录】优化代码
This commit is contained in:
parent
8099b0e9f6
commit
9538a59d3c
@ -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();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user