RTP 读取图片中间件
1,使用
const { imgReader } = require("rtp_img_reader");
app.use(imgReader);
2,路由说明
// pol 缺陷卡片查询老版
/flaw_image/pol@0.0.1/缺陷UUID/文件位置
// pol 缺陷卡片查询新版
/flaw_image/pol@0.0.3/缺陷UUID/文件位置
// 偏贴后 缺陷卡片图片查询
/flaw_image/pth@0.0.1/缺陷id/文件位置
// 偏贴后 缺陷卡片图片查询
/flaw_info/pth@0.0.1/缺陷id/文件位置
案例
http://127.0.0.1:8396/flaw_image/pol@0.0.1/0/%5C%5CDESKTOP-OTAM5LL%5Cshare%5CliveOld.dat
http://127.0.0.1:8396/flaw_image/pol@0.0.3/%7B10b602d4-bc31-4204-b933-e60464ae5e69%7D/%5C%5CDESKTOP-OTAM5LL%5Cshare%5CnextNew.dat
http://127.0.0.1:8396/flaw_image/pth@0.0.1/1/%5C%5CDESKTOP-OTAM5LL%5Cshare%5Cpth.dat