完成judge功能,管壳码全0校验
This commit is contained in:
@@ -79,7 +79,16 @@ static int coder_calc_year(const char *year,const char shell_year,char *uid_year
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
||||
// 返回1则shell_code有效
|
||||
int check_shell_code(const char *shell_code)
|
||||
{
|
||||
for(int i=0;i<13;i++)
|
||||
{
|
||||
if(shell_code[i]==0)
|
||||
return 0;
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
||||
// 管壳码转uid码
|
||||
int coder_shell_to_uid(const char *year,const char *shell_code,char *uid_code)
|
||||
|
Reference in New Issue
Block a user