\app\common\library\printer\engineFeie

飞鹅打印机API引擎 Class Feie

Summary

Methods
Properties
Constants
__construct()
printTicket()
getError()
No public properties found
IP
PORT
PATH
No protected methods found
$config
$times
$error
N/A
setContentText()
getParams()
No private properties found
N/A

Constants

IP

IP = 'api.feieyun.cn'

PORT

PORT = 80

PATH

PATH = '/Api/Open/'

Properties

$config

$config : 

Type

$times

$times : 

Type

$error

$error : 

Type

Methods

__construct()

__construct(array  $config, integer  $times) 

构造函数 Basics constructor.

Parameters

array $config

打印机配置

integer $times

打印联数(次数)

printTicket()

printTicket(  $content) : boolean|mixed

执行订单打印

Parameters

$content

Returns

boolean|mixed

getError()

getError() : mixed

返回错误信息

Returns

mixed

setContentText()

setContentText() : string

创建打印的内容

Returns

string

getParams()

getParams(  $content) : array

构建Api请求参数

Parameters

$content

Returns

array