uid追溯改为10年,密码上报反序
This commit is contained in:
ranchuan
2023-11-16 10:09:19 +08:00
parent 2141db1f2f
commit c537004498
7 changed files with 17 additions and 13 deletions

View File

@@ -69,7 +69,9 @@ static int coder_calc_year(const char *year,const char shell_year,char *uid_year
}
// year是实时数据鉴于12月31生产的雷管year可能不同
// 此时year-1来保证与uid码上的相同
if(year[3]!=shell_year)
// if(year[3]!=shell_year)
// y--;
while((y%10)!=(shell_year-'0'))
y--;
uid_year[0]=y%100/10+'0';
uid_year[1]=y%10+'0';