First, the printer acquaintance Fei Ngo Shan
Second, configure the printer
摁下灰色按钮,打开机盖:
放入小票:
不要放反了:
连接电源上,开启开关,单击设置按钮:
在点一次设置:
上面的2.4g为公司的无线网络,二维码扫描后输入密码即可连接成功:
Third, the registered background
添加打印机
:
实名认证(两种方式,哪一种都可以开发)
:
Fourth, the printer interface calls
api文档:http://www.feieyun.com/open/index.html
打印机必接的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:
调用wp_print方法,即可实现打印:
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.