|
@@ -44,8 +44,8 @@ public class WalkApp {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
while (true) {
|
|
while (true) {
|
|
|
- String result = HttpUtil.get(API.PHOTO_LIST);
|
|
|
|
|
try {
|
|
try {
|
|
|
|
|
+ String result = HttpUtil.get(API.PHOTO_LIST);
|
|
|
BaseBean homeBean = JSON.parseObject(result, BaseBean.class);
|
|
BaseBean homeBean = JSON.parseObject(result, BaseBean.class);
|
|
|
if (homeBean == null) {
|
|
if (homeBean == null) {
|
|
|
continue;
|
|
continue;
|
|
@@ -89,8 +89,8 @@ public class WalkApp {
|
|
|
videoDir.mkdirs();
|
|
videoDir.mkdirs();
|
|
|
}
|
|
}
|
|
|
while (true) {
|
|
while (true) {
|
|
|
- String result = HttpUtil.get(API.VIDEO);
|
|
|
|
|
try {
|
|
try {
|
|
|
|
|
+ String result = HttpUtil.get(API.VIDEO);
|
|
|
BaseBean baseBean = JSON.parseObject(result, BaseBean.class);
|
|
BaseBean baseBean = JSON.parseObject(result, BaseBean.class);
|
|
|
if (baseBean == null) {
|
|
if (baseBean == null) {
|
|
|
continue;
|
|
continue;
|