при использовании createimagefromjpeg для загрузки wechat qrcode генерируется много выходных данных - PullRequest
0 голосов
/ 22 февраля 2020

step1: загрузить qrcode pi c из: https://mp.weixin.qq.com/cgi-bin/showqrcode?ticket=gQEG8DwAAAAAAAAAAS5odHRwOi8vd2VpeGluLnFxLmNvbS9xLzAyWjFZeHBkWlNkNUQxMDAwMGcwN1MAAgRYdS1dAwQAAAAA как использовать:

curl -o qrcode.jpeg https://mp.weixin.qq.com/cgi-bin/showqrcode?ticket=gQEG8DwAAAAAAAAAAS5odHRwOi8vd2VpeGluLnFxLmNvbS9xLzAyWjFZeHBkWlNkNUQxMDAwMGcwN1MAAgRYdS1dAwQAAAAA

step2: загрузить pi c

$ret = createimagefromjpeg("qrcode.jpeg");

затем получите журналы печати следующим образом:

00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ---------- 7: 0 ----------

======================= 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ------- --- 8: 0 ----------

...