php access Flamingo printer

First, the printer acquaintance Fei Ngo Shan

Here Insert Picture Description
Here Insert Picture Description
Here Insert Picture Description
Here Insert Picture Description

Second, configure the printer

摁下灰色按钮,打开机盖:
Here Insert Picture Description
放入小票:
Here Insert Picture Description
不要放反了:
Here Insert Picture Description
Here Insert Picture Description
连接电源上,开启开关,单击设置按钮:
Here Insert Picture Description
在点一次设置:
Here Insert Picture Description
上面的2.4g为公司的无线网络,二维码扫描后输入密码即可连接成功:

Here Insert Picture Description
Here Insert Picture Description

Third, the registered background

添加打印机
Here Insert Picture Description
实名认证(两种方式,哪一种都可以开发)
Here Insert Picture Description

Fourth, the printer interface calls

api文档:http://www.feieyun.com/open/index.html
Here Insert Picture Description
打印机必接的api:
1, Add Printer
① can add a printer by codes (bulk)
② can add a printer (once) through the background
I chose to add the background

2, the test print
download a sdk to:
Here Insert Picture Description

Here Insert Picture Description
调用wp_print方法,即可实现打印:
Here Insert Picture Description

Fifth, put the project logic implemented

Scene: general takeaway is automatically printed after coming out of a small ticket orders and prompts: You have new orders, or orders from the background manually print the list

实现逻辑:
In order to generate the method, in the method of payment in the callback method can be called a printer that can be! According to the needs of your project.

Published 328 original articles · won praise 110 · views 470 000 +

Guess you like

Origin blog.csdn.net/qq_42249896/article/details/102646620