|
@@ -216,8 +216,12 @@ public class StmmsUtils {
|
|
|
JSONObject jsonObject = JSONObject.parseObject(result);
|
|
|
if (jsonObject.containsKey("success")) {
|
|
|
String success = jsonObject.get("success").toString();
|
|
|
- if (Boolean.valueOf(success) && jsonObject.containsKey("url")) {
|
|
|
- return jsonObject.get("url").toString();
|
|
|
+ if (Boolean.valueOf(success)) {
|
|
|
+ if(jsonObject.containsKey("url")) {
|
|
|
+ return jsonObject.get("url").toString();
|
|
|
+ } else {
|
|
|
+ return success;
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
} catch (Exception e) {
|