Commit 564024a5 authored by fallenstardust's avatar fallenstardust

fix myDeckItem的deckid和userid获取错误

parent 9680f33b
...@@ -73,7 +73,7 @@ public class DeckSquareFileUtil { ...@@ -73,7 +73,7 @@ public class DeckSquareFileUtil {
try { try {
String data = line.replace("#", ""); String data = line.replace("#", "");
if (!data.isEmpty()) { if (!data.isEmpty()) {
userId = Integer.parseInt(data); deckId = data;
} }
// userId = Integer.parseInt(line.replaceAll("###", "")); // userId = Integer.parseInt(line.replaceAll("###", ""));
} catch (NumberFormatException e) { } catch (NumberFormatException e) {
...@@ -82,17 +82,15 @@ public class DeckSquareFileUtil { ...@@ -82,17 +82,15 @@ public class DeckSquareFileUtil {
} else if (line.startsWith("##")) { } else if (line.startsWith("##")) {
line = line.replace("#", ""); line = line.replace("#", "");
deckId = line; userId = Integer.parseInt(line);
} }
} }
} catch (IOException e) { } catch (IOException e) {
LogUtil.e(TAG, "read 1", e); LogUtil.e(TAG, "read 1", e);
} finally { } finally {
IOUtils.close(inputStream); IOUtils.close(inputStream);
} }
return deckId; return deckId;
......
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