|
|
@ -48,6 +48,7 @@ public class FineMarketClientHelper { |
|
|
|
private static final String CERTIFICATE_PUBLIC_KEY = FineMarketPublicKeyHolder.getInstance().getDefaultKey(); |
|
|
|
private static final String CERTIFICATE_PUBLIC_KEY = FineMarketPublicKeyHolder.getInstance().getDefaultKey(); |
|
|
|
public static final String FINE_MARKET_TEMPLATE_INFO = CloudCenter.getInstance().acquireUrlByKind("market.template.info"); |
|
|
|
public static final String FINE_MARKET_TEMPLATE_INFO = CloudCenter.getInstance().acquireUrlByKind("market.template.info"); |
|
|
|
public static final String FINE_MARKET_TEMPLATE_URL = CloudCenter.getInstance().acquireUrlByKind("market.template.url"); |
|
|
|
public static final String FINE_MARKET_TEMPLATE_URL = CloudCenter.getInstance().acquireUrlByKind("market.template.url"); |
|
|
|
|
|
|
|
public static final String VERSION = "&version=11.0"; |
|
|
|
public static final String FILE_DOWNLOAD = "file/download/"; |
|
|
|
public static final String FILE_DOWNLOAD = "file/download/"; |
|
|
|
public static final String PACKAGE_DOWNLOAD = "package/download/"; |
|
|
|
public static final String PACKAGE_DOWNLOAD = "package/download/"; |
|
|
|
public static final String TEMPLATES_PARENT_PACKAGE = "parent/"; |
|
|
|
public static final String TEMPLATES_PARENT_PACKAGE = "parent/"; |
|
|
@ -268,7 +269,7 @@ public class FineMarketClientHelper { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public @Nullable JSONArray getTemplateInfoByName(String name) throws IOException { |
|
|
|
public @Nullable JSONArray getTemplateInfoByName(String name) throws IOException { |
|
|
|
String url = FINE_MARKET_TEMPLATE_INFO + NAME_SEARCH + name; |
|
|
|
String url = FINE_MARKET_TEMPLATE_INFO + NAME_SEARCH + name + VERSION; |
|
|
|
String jsonString = HttpToolbox.get(url); |
|
|
|
String jsonString = HttpToolbox.get(url); |
|
|
|
JSONObject jsonObject = new JSONObject(jsonString); |
|
|
|
JSONObject jsonObject = new JSONObject(jsonString); |
|
|
|
String responseState = (String) jsonObject.get(RESPONSE_STATE); |
|
|
|
String responseState = (String) jsonObject.get(RESPONSE_STATE); |
|
|
|