兼容没有Version情况
This commit is contained in:
parent
8ca5565fc8
commit
e205ffb52e
@ -137,8 +137,8 @@ public class UpgradeModule extends ReactContextBaseJavaModule {
|
||||
JSONObject json = new JSONObject(jsonText);
|
||||
int status = json.getInt("status");
|
||||
CONTENT = json.getString("message");
|
||||
String version = json.getString("version");
|
||||
if(status > 0){
|
||||
String version = json.getString("version");
|
||||
JSONObject jsonData = json.getJSONObject("data");
|
||||
DOWNLOAD_URL = jsonData.getString("url");
|
||||
that._alertDialog();
|
||||
|
Loading…
x
Reference in New Issue
Block a user