Commit ad769603 authored by 957dd's avatar 957dd

Merge branch 'feature/add_aboard_tts' into 'master'

优化了验证 See merge request !132
parents 1ae7fed8 f3e6d081
No preview for this file type
...@@ -227,6 +227,9 @@ void message_2_judyverify(cJSON *body) ...@@ -227,6 +227,9 @@ void message_2_judyverify(cJSON *body)
} }
else else
{ {
if (mqtt_verify_is_pending())
my_zlog_info("message_type=2 已拦截: Token正在等待后端验证");
else
my_zlog_warn("验证不通过"); my_zlog_warn("验证不通过");
} }
} }
...@@ -248,6 +251,9 @@ void message_3_judyverify(cJSON *body) ...@@ -248,6 +251,9 @@ void message_3_judyverify(cJSON *body)
} }
else else
{ {
if (mqtt_verify_is_pending())
my_zlog_info("message_type=3 已拦截: Token正在等待后端验证");
else
my_zlog_warn("验证不通过"); my_zlog_warn("验证不通过");
} }
} }
...@@ -269,6 +275,9 @@ void message_4_judyverify(cJSON *body) ...@@ -269,6 +275,9 @@ void message_4_judyverify(cJSON *body)
} }
else else
{ {
if (mqtt_verify_is_pending())
my_zlog_info("message_type=4 已拦截: Token正在等待后端验证");
else
my_zlog_warn("验证不通过"); my_zlog_warn("验证不通过");
} }
} }
...@@ -290,6 +299,9 @@ void message_6_steering_judyverify(cJSON *body) ...@@ -290,6 +299,9 @@ void message_6_steering_judyverify(cJSON *body)
} }
else else
{ {
if (mqtt_verify_is_pending())
my_zlog_info("message_type=6 已拦截: Token正在等待后端验证");
else
my_zlog_warn("验证不通过"); my_zlog_warn("验证不通过");
} }
} }
...@@ -317,6 +329,9 @@ void message_7_joystick_judyverify(cJSON *body) ...@@ -317,6 +329,9 @@ void message_7_joystick_judyverify(cJSON *body)
} }
else else
{ {
if (mqtt_verify_is_pending())
my_zlog_info("message_type=7 已拦截: Token正在等待后端验证");
else
my_zlog_warn("验证不通过"); my_zlog_warn("验证不通过");
} }
} }
......
This diff is collapsed.
...@@ -16,6 +16,7 @@ extern int g_verify_index;//判断是否验证成功 ...@@ -16,6 +16,7 @@ extern int g_verify_index;//判断是否验证成功
int receive_jwt(cJSON *body);//jwt验证 int receive_jwt(cJSON *body);//jwt验证
bool mqtt_verify_is_pending(void);
int message2006_verify(cJSON *body); int message2006_verify(cJSON *body);
/*接收到是否打开验证的函数(2013 仅接受加密 body)*/ /*接收到是否打开验证的函数(2013 仅接受加密 body)*/
......
...@@ -9,4 +9,4 @@ file perms = 600 ...@@ -9,4 +9,4 @@ file perms = 600
millisecond = "%d(%Y-%m-%d %H:%M:%S).%ms [%V] %m%n" millisecond = "%d(%Y-%m-%d %H:%M:%S).%ms [%V] %m%n"
[rules] [rules]
my_log.* "/home/orangepi/car/master/log/log_2026-07-28.log"; millisecond my_log.* "/home/orangepi/car/master/log/log_2026-07-31.log"; millisecond
This diff is collapsed.
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