瀏覽代碼

#验证码颜色修改

zxs 2 天之前
父節點
當前提交
0408b56bee
共有 2 個文件被更改,包括 25 次插入47 次删除
  1. 24 47
      robot/robotics/mvc.hpp
  2. 1 0
      robot/robotics/v2/nexus_net_client.hpp

+ 24 - 47
robot/robotics/mvc.hpp

@@ -2546,53 +2546,30 @@ namespace robotics {
 				//生成随机颜色
 				unsigned char* generate_random_color() {
 					static unsigned char colors[][3] = {
-						{47,79,79},
-						{100,149,237},
-						{0,0,205},
-						{0,191,255},
-						{30,144,255},
-						{70,130,180},
-						{0,206,209},
-						{0,255,255},
-						{0,100,0},
-						{85,107,47},
-						{46,139,87},
-						{107,142,35},
-						{184,134,11},
-						{218,165,32},
-						{139,69,19},
-						{165,42,42},
-						{255,127,80},
-						{255,69,0},
-						{176,48,96},
-						{160,32,240},
-						{139,137,137},
-						{58,95,205},
-						{16,78,139},
-						{0,154,205},
-						{159,182,205},
-						{0,197,205},
-						{121,205,205},
-						{69,139,116},
-						{67,205,128},
-						{0,205,102},
-						{205,155,29},
-						{205,85,85},
-						{205,133,63},
-						{205,38,38},
-						{205,133,0},
-						{205,91,69},
-						{205,79,57},
-						{205,55,0},
-						{205,145,158},
-						{139,28,98},
-						{180,82,205},
-						{125,38,205},
-						{139,123,139},
-						{0,0,139},
-						{0,139,139},
-						{139,0,139},
-						{139,0,0} };
+						{47,79,79     },
+						{105,105,105  },
+						{0,0,128      },
+						{100,149,237  },
+						{72,61,139    },
+						{106,90,205   },
+						{123,104,238  },
+						{132,112,255  },
+						{65,105,225   },
+						{85,107,47    },
+						{107,142,35   },
+						{205,92,92    },
+						{160,82,45    },
+						{178,34,34    },
+						{255,69,0     },
+						{176,48,96    },
+						{160,32,240   },
+						{139,137,137  },
+						{0,139,139    },
+						{139,0,0      },
+						{139,0,139    },
+						{154,50,205   },
+						{238,64,0     },
+						{0,139,69     } };
 					return colors[v3::utils::random(0, sizeof(colors) / sizeof(colors[0]) - 1)];
 				}
 				//生成字体大小,位置

+ 1 - 0
robot/robotics/v2/nexus_net_client.hpp

@@ -2749,6 +2749,7 @@ namespace robotics::v2 {
             if (!subscribe.enable)
                 return false;
             manager_.add(std::pair(subscribe.group, subscribe.name), (typename v3::function_traits<_Fn>::stl_function_type)(std::bind_front(std::forward<_Fn>(fn), std::forward<_This>(ths))));
+            return true;
         }
         //调用
         template<typename _Ret, typename ..._Args>