Commit a06aa767 authored by captainwong's avatar captainwong

smartresize

parent 9e1c7dad
......@@ -150,14 +150,14 @@
|安定宝事件码类型|主机类型|防区范围|有线防区范围|支持电话报警|内核负责人|在售主机型号与图标|
|---------------|-------|-------|-----------|-----------|---------|----------------|
|1707--我是网络模块|3 网络模块+工程主机|1~999|1~8||jinjianfeng|<ul><li>HB-G250 <img alt="HB-G250" src="./主机类型/HB-G250.jpg" style="max-height:80px" /></li></ul>|
|1707--我是网络模块|3 网络模块+工程主机|1~999|1~8||jinjianfeng|<ul><li>HB-G250 <img alt="HB-G250" src="./主机类型/smartresize/HB-G250-web.png" style="max-height:80px" /></li></ul>|
|1717--我是GPRS主机|4 GPRS主机|1~99||Yes|wuziqiang|<ul></ul>|
|1727--我是液晶主机|5 液晶主机|1~249||Yes|jinjianfeng|<ul><li>HB-BJQ560 <img alt="HB-BJQ560" src="./主机类型/HB-BJQ560.png" style="max-height:80px" /></li><li>HB-BJQ560B <img alt="HB-BJQ560B" src="./主机类型/HB-BJQ560B.png" style="max-height:80px" /></li></ul>|
|1737--我是网线主机|6 网线主机|1~99|||wuziqiang|<ul><li>HB-4040R <img alt="HB-4040R" src="./主机类型/HB-4040R.png" style="max-height:80px" /></li><li>HB-5050R <img alt="HB-5050R" src="./主机类型/HB-5050R.png" style="max-height:80px" /></li></ul>|
|1757--我是三区段主机|8 三区段主机|1~191|1~8|Yes|jinjianfeng|<ul><li>HB-G1000 <img alt="HB-G1000" src="./主机类型/HB-G1000.png" style="max-height:80px" /></li><li>HB-G1000-4G <img alt="HB-G1000-4G" src="./主机类型/HB-G1000-4G.png" style="max-height:80px" /></li></ul>|
|1767--我是物联卡主机|9 物联卡主机|1~99|||jinjianfeng|<ul><li>HB-5050G-4GW <img alt="HB-5050G-4GW" src="./主机类型/HB-5050G-4GW.png" style="max-height:80px" /></li></ul>|
|1787--我是简化版物联卡主机|2 物联卡主机|1~68|||wuziqiang|<ul><li>HB-5050G <img alt="HB-5050G" src="./主机类型/HB-5050G.png" style="max-height:80px" /></li><li>HB-5050G-4G <img alt="HB-5050G-4G" src="./主机类型/HB-5050G-4G.png" style="max-height:80px" /></li></ul>|
|1797--我是能打电话的GPRS主机|10 GPRS主机能打电话|1~60||Yes|jinjianfeng|<ul><li>HB-2050 <img alt="HB-2050" src="./主机类型/HB-2050.jpg" style="max-height:80px" /></li></ul>|
|1727--我是液晶主机|5 液晶主机|1~249||Yes|jinjianfeng|<ul><li>HB-BJQ560 <img alt="HB-BJQ560" src="./主机类型/smartresize/HB-BJQ560-web.png" style="max-height:80px" /></li><li>HB-BJQ560B <img alt="HB-BJQ560B" src="./主机类型/smartresize/HB-BJQ560B-web.png" style="max-height:80px" /></li></ul>|
|1737--我是网线主机|6 网线主机|1~99|||wuziqiang|<ul><li>HB-4040R <img alt="HB-4040R" src="./主机类型/smartresize/HB-4040R-web.png" style="max-height:80px" /></li><li>HB-5050R <img alt="HB-5050R" src="./主机类型/smartresize/HB-5050R-web.png" style="max-height:80px" /></li></ul>|
|1757--我是三区段主机|8 三区段主机|1~191|1~8|Yes|jinjianfeng|<ul><li>HB-G1000 <img alt="HB-G1000" src="./主机类型/smartresize/HB-G1000-web.png" style="max-height:80px" /></li><li>HB-G1000-4G <img alt="HB-G1000-4G" src="./主机类型/smartresize/HB-G1000-4G-web.png" style="max-height:80px" /></li></ul>|
|1767--我是物联卡主机|9 物联卡主机|1~99|||jinjianfeng|<ul><li>HB-5050G-4GW <img alt="HB-5050G-4GW" src="./主机类型/smartresize/HB-5050G-4GW-web.png" style="max-height:80px" /></li></ul>|
|1787--我是简化版物联卡主机|2 物联卡主机|1~68|||wuziqiang|<ul><li>HB-5050G <img alt="HB-5050G" src="./主机类型/smartresize/HB-5050G-web.png" style="max-height:80px" /></li><li>HB-5050G-4G <img alt="HB-5050G-4G" src="./主机类型/smartresize/HB-5050G-4G-web.png" style="max-height:80px" /></li></ul>|
|1797--我是能打电话的GPRS主机|10 GPRS主机能打电话|1~60||Yes|jinjianfeng|<ul><li>HB-2050 <img alt="HB-2050" src="./主机类型/smartresize/HB-2050-web.png" style="max-height:80px" /></li></ul>|
## 四、恒博扩展
......
......@@ -179,10 +179,10 @@ std::vector<std::string> get_machine_brands(MachineType t)
std::string brand_to_path(const std::string& brand)
{
std::vector<std::string> exts = { "png", "jpg" };
std::string path = jlib::win32::utf16_to_mbcs(L"..\\..\\docs\\主机类型\\") + brand;
std::string path = jlib::win32::utf16_to_mbcs(L"..\\..\\docs\\主机类型\\smartresize\\") + brand;
for (auto ext : exts) {
if (jlib::win32::fileExists(path + "." + ext)) {
return jlib::win32::utf16_to_mbcs(L"./主机类型/") + brand + "." + ext;
if (jlib::win32::fileExists(path + "-web." + ext)) {
return jlib::win32::utf16_to_mbcs(L"./主机类型/smartresize/") + brand + "-web." + ext;
}
}
return {};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment