我之前正在实施客户端图片上传。代码如下。目前我遇到了以下情况:
public class GlobalConfig {
@SerializedName("rmhc_config")
private RMHCConfigModel rmhc;
public static GlobalConfig fromJson(String json) {
return new Gson().fromJson(json, GlobalConfig.class);
}
public String toJson() {
return new Gson().toJson(this);
}
}
public class RMHCConfigModel {
@SerializedName("show_donation")
private boolean showDonation;
@SerializedName("campaignEnabled")
private boolean campaignEnabled;
}
你知道这可能导致什么吗?
https://imgur-apiv3.p.mashape.com/3/image.json Failed to load resource: the server responded with a status of 502 (Bad Gateway)