提交 7ca9e354 authored 作者: blu's avatar blu

getSn confliction

上级 85b67a2c
...@@ -376,7 +376,12 @@ togo_end: ...@@ -376,7 +376,12 @@ togo_end:
int getSn(json &info, string fileName){ int getSn(json &info, string fileName){
int ret = 0; int ret = 0;
int cnt = 0;
while(ret < 0 && cnt < 3) {
ret = getValue(info, LVDB_KEY_SN, fileName, _validateSn); ret = getValue(info, LVDB_KEY_SN, fileName, _validateSn);
cnt++;
}
if(ret < 0) { if(ret < 0) {
// read from text config // read from text config
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论