V0.05
uid追溯改为10年,密码上报反序
This commit is contained in:
@@ -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';
|
||||
|
Reference in New Issue
Block a user