|
|
@ -15,6 +15,7 @@ import com.fr.plugin.error.PluginErrorCode; |
|
|
|
import com.fr.plugin.manage.PluginManager; |
|
|
|
import com.fr.plugin.manage.PluginManager; |
|
|
|
import com.fr.plugin.view.PluginView; |
|
|
|
import com.fr.plugin.view.PluginView; |
|
|
|
import com.fr.stable.EncodeConstants; |
|
|
|
import com.fr.stable.EncodeConstants; |
|
|
|
|
|
|
|
import com.fr.stable.ProductConstants; |
|
|
|
import com.fr.stable.StableUtils; |
|
|
|
import com.fr.stable.StableUtils; |
|
|
|
import com.fr.stable.StringUtils; |
|
|
|
import com.fr.stable.StringUtils; |
|
|
|
import java.io.File; |
|
|
|
import java.io.File; |
|
|
@ -35,6 +36,7 @@ import java.util.Map; |
|
|
|
public class PluginUtils { |
|
|
|
public class PluginUtils { |
|
|
|
|
|
|
|
|
|
|
|
private static final String ERROR_CODE_I18N_PREFIX = "FR-Plugin_Error_"; |
|
|
|
private static final String ERROR_CODE_I18N_PREFIX = "FR-Plugin_Error_"; |
|
|
|
|
|
|
|
public static final String FR_VERSION = "fr_version"; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public static PluginMarker createPluginMarker(String pluginInfo) { |
|
|
|
public static PluginMarker createPluginMarker(String pluginInfo) { |
|
|
@ -109,7 +111,7 @@ public class PluginUtils { |
|
|
|
private static String getDownloadPath(String id) throws Exception { |
|
|
|
private static String getDownloadPath(String id) throws Exception { |
|
|
|
HashMap<String, String> map = new HashMap<String, String>(); |
|
|
|
HashMap<String, String> map = new HashMap<String, String>(); |
|
|
|
map.put("id", id); |
|
|
|
map.put("id", id); |
|
|
|
HttpClient httpClient = new HttpClient(CloudCenter.getInstance().acquireUrlByKind("shop.plugin.scripts_10")); |
|
|
|
HttpClient httpClient = new HttpClient(CloudCenter.getInstance().acquireUrlByKind("shop.script.download")+ "?" + FR_VERSION + "=" + ProductConstants.VERSION); |
|
|
|
httpClient.asGet(); |
|
|
|
httpClient.asGet(); |
|
|
|
String resText = httpClient.getResponseText(); |
|
|
|
String resText = httpClient.getResponseText(); |
|
|
|
JSONObject resultJSONObject = new JSONObject(resText); |
|
|
|
JSONObject resultJSONObject = new JSONObject(resText); |
|
|
|