|
|
|
@ -45,7 +45,7 @@ public class DataEaseController extends Controller {
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
//http://10.10.14.203/#/de-link/mOFfS3Ot?area_id=[区域]
|
|
|
|
|
//http://10.10.21.20:9000/dsBase/dataease/YxRoute?area_name=南关区
|
|
|
|
|
//http://10.10.21.20:9000/dsBase/dataease/YxRoute?area_name=南关区&type_id=1
|
|
|
|
|
//http://10.10.14.14:9000/dsBase/dataease/YxRoute?area_name=南关区
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
@ -56,10 +56,10 @@ public class DataEaseController extends Controller {
|
|
|
|
|
@Before({GET.class})
|
|
|
|
|
@EmptyInterface({"area_name"})
|
|
|
|
|
public void YxRoute(String area_name, int type_id) {
|
|
|
|
|
if(type_id == 0) type_id=1;
|
|
|
|
|
//发布的地址
|
|
|
|
|
String publish_url = BaseApplication.PropKit.get("YunXiao.yingyong_publish_url");
|
|
|
|
|
if(type_id==2)publish_url=BaseApplication.PropKit.get("YunXiao.jianshe_publish_url");
|
|
|
|
|
String publish_url = BaseApplication.PropKit.get("dataEase.publish_url");
|
|
|
|
|
if (type_id == 0) type_id = 1;
|
|
|
|
|
publish_url += BaseApplication.PropKit.get("YunXiao.t" + type_id);
|
|
|
|
|
//拼接一下URL的最终地址
|
|
|
|
|
JSONObject jo = new JSONObject();
|
|
|
|
|
jo.put("area_name", area_name);
|
|
|
|
@ -70,6 +70,7 @@ public class DataEaseController extends Controller {
|
|
|
|
|
redirect(publish_url + "?attachParams=" + base64Str);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 云校仪表盘路由
|
|
|
|
|
*
|
|
|
|
@ -86,13 +87,7 @@ public class DataEaseController extends Controller {
|
|
|
|
|
JSONObject jo = new JSONObject();
|
|
|
|
|
jo.put("area_name", area_name);
|
|
|
|
|
String base64Str = Base64.encode(jo.toString());
|
|
|
|
|
if (type_id == 1) {
|
|
|
|
|
publish_url = publish_url + BaseApplication.PropKit.get("dataEase.YxAreaClassStudentTeacher");
|
|
|
|
|
} else if (type_id == 2) {
|
|
|
|
|
publish_url = publish_url + BaseApplication.PropKit.get("dataEase.YxKeCheng");
|
|
|
|
|
} else if (type_id == 3) { //区县-访客应用统计
|
|
|
|
|
publish_url = publish_url + BaseApplication.PropKit.get("dataEase.YxAreaFangKeYingYong");
|
|
|
|
|
}
|
|
|
|
|
publish_url = publish_url + BaseApplication.PropKit.get("routeYxPage.t" + type_id);
|
|
|
|
|
//跳转
|
|
|
|
|
redirect(publish_url + "?attachParams=" + base64Str);
|
|
|
|
|
}
|
|
|
|
|