\app\common\service\orderPrinter

订单打印服务类 Class Printer

Summary

Methods
Properties
Constants
printTicket()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
getPrintContent()
No private properties found
N/A

Methods

printTicket()

printTicket(\app\common\model\BaseModel  $order, integer  $scene) : boolean

执行订单打印

Parameters

\app\common\model\BaseModel $order

订单信息

integer $scene

场景

Throws

\app\common\exception\BaseException
\think\exception\DbException

Returns

boolean

getPrintContent()

getPrintContent(\app\common\model\BaseModel  $order) : string

构建订单打印的内容

Parameters

\app\common\model\BaseModel $order

Returns

string