wangyj18 9 年之前
父节点
当前提交
ba0d0c9dd9
共有 1 个文件被更改,包括 15 次插入24 次删除
  1. 15 24
      multiple-client/src/com/ai/mobile/multiple/func/AppManagePlugin.java

+ 15 - 24
multiple-client/src/com/ai/mobile/multiple/func/AppManagePlugin.java

@ -46,33 +46,24 @@ public class AppManagePlugin extends Plugin {
46 46
		}
47 47
	}
48 48

49
	/** 初始化 */
50
	/*{
51
		try {
52
			MobileNetWork mobileNetWork = wademobile.getPluginManager()
53
					.getPlugin(MobileNetWork.class);
54
			String appConfig = mobileNetWork.dataRequest(
55
					"IndexBean.getAppDatas", null);
56
			JSONObject appConfigJson = new JSONObject(appConfig);
57
			JSONArray apps = appConfigJson.getJSONArray("APPS");
49
	public void initAppConfig(JSONArray param) throws Exception {
50
		MobileNetWork mobileNetWork = wademobile.getPluginManager()
51
				.getPlugin(MobileNetWork.class);
52
		String appConfig = mobileNetWork.dataRequest(
53
				"LoginBean.initAppConfig", null);
54
		JSONObject appConfigJson = new JSONObject(appConfig);
55
		JSONArray apps = appConfigJson.getJSONArray("APPS");
58 56

59
			MultipleAppConfig multipleAppConfig = null;
60
			for (int i = 0; i < apps.length(); i++) {
61
				JSONObject o = (JSONObject) apps.get(i);
57
		MultipleAppConfig multipleAppConfig = null;
58
		for (int i = 0; i < apps.length(); i++) {
59
			JSONObject o = (JSONObject) apps.get(i);
62 60

63
				multipleAppConfig = new MultipleAppConfig(
64
						o.getString("requestHost"), o.getString("requestPath"),
65
						o.getString("requestServlet"), o.getString("appPath"));
66
				MultipleManager.putAppConfig(o.getString("appId"),
67
						multipleAppConfig);
68
			}
69
		} catch (Exception e) {
70
			e.printStackTrace();
61
			multipleAppConfig = new MultipleAppConfig(
62
					o.getString("requestHost"), o.getString("requestPath"),
63
					o.getString("requestServlet"), o.getString("appPath"));
64
			MultipleManager.putAppConfig(o.getString("appId"),
65
					multipleAppConfig);
71 66
		}
72
	}*/
73
	
74
	public void initAppConfig(JSONArray param) throws Exception {
75
		//初始化MultipleAppConfig
76 67
	}
77 68

78 69
	public void openIpuApp(JSONArray param) throws Exception {