|  | @@ -15,6 +15,7 @@ import com.alibaba.android.arouter.launcher.ARouter;
 | 
											
												
													
														|  |  import com.cooleshow.base.common.WebApi;
 |  |  import com.cooleshow.base.common.WebApi;
 | 
											
												
													
														|  |  import com.cooleshow.base.router.RouterPath;
 |  |  import com.cooleshow.base.router.RouterPath;
 | 
											
												
													
														|  |  import com.cooleshow.base.utils.LOG;
 |  |  import com.cooleshow.base.utils.LOG;
 | 
											
												
													
														|  | 
 |  | +import com.cooleshow.base.utils.helper.QMUIStatusBarHelper;
 | 
											
												
													
														|  |  import com.cooleshow.chatmodule.utils.helper.ChatHelper;
 |  |  import com.cooleshow.chatmodule.utils.helper.ChatHelper;
 | 
											
												
													
														|  |  import com.cooleshow.student.helper.EventHelper;
 |  |  import com.cooleshow.student.helper.EventHelper;
 | 
											
												
													
														|  |  import com.cooleshow.usercenter.constants.UserConstants;
 |  |  import com.cooleshow.usercenter.constants.UserConstants;
 | 
											
										
											
												
													
														|  | @@ -54,10 +55,14 @@ public class JsInterfaceUtils extends Object {
 | 
											
												
													
														|  |              try {
 |  |              try {
 | 
											
												
													
														|  |                  JSONObject jsonObject = new JSONObject(message);
 |  |                  JSONObject jsonObject = new JSONObject(message);
 | 
											
												
													
														|  |                  String api = jsonObject.getString("api");
 |  |                  String api = jsonObject.getString("api");
 | 
											
												
													
														|  | -                LOG.i("api:"+api);
 |  | 
 | 
											
												
													
														|  | 
 |  | +                LOG.i("postMessage:" + jsonObject.toString());
 | 
											
												
													
														|  |                  if ("back".equals(api)) {
 |  |                  if ("back".equals(api)) {
 | 
											
												
													
														|  |                      activity.finish();
 |  |                      activity.finish();
 | 
											
												
													
														|  |                  }
 |  |                  }
 | 
											
												
													
														|  | 
 |  | +                if (TextUtils.equals("goBack", api)) {
 | 
											
												
													
														|  | 
 |  | +                    activity.finish();
 | 
											
												
													
														|  | 
 |  | +                    return;
 | 
											
												
													
														|  | 
 |  | +                }
 | 
											
												
													
														|  |                  if ("login".equals(api)) {
 |  |                  if ("login".equals(api)) {
 | 
											
												
													
														|  |                      UserHelper.logout();
 |  |                      UserHelper.logout();
 | 
											
												
													
														|  |                      activity.finish();
 |  |                      activity.finish();
 | 
											
										
											
												
													
														|  | @@ -67,7 +72,7 @@ public class JsInterfaceUtils extends Object {
 | 
											
												
													
														|  |                      if (null != contentBean) {
 |  |                      if (null != contentBean) {
 | 
											
												
													
														|  |                          String userId = contentBean.optString("userId");
 |  |                          String userId = contentBean.optString("userId");
 | 
											
												
													
														|  |                          String name = contentBean.optString("name");
 |  |                          String name = contentBean.optString("name");
 | 
											
												
													
														|  | -                        ChatHelper.getInstance().goChat(userId,name);
 |  | 
 | 
											
												
													
														|  | 
 |  | +                        ChatHelper.getInstance().goChat(userId, name);
 | 
											
												
													
														|  |                      }
 |  |                      }
 | 
											
												
													
														|  |                  }
 |  |                  }
 | 
											
												
													
														|  |                  if (TextUtils.equals("chooseFile", api)) {
 |  |                  if (TextUtils.equals("chooseFile", api)) {
 | 
											
										
											
												
													
														|  | @@ -244,6 +249,18 @@ public class JsInterfaceUtils extends Object {
 | 
											
												
													
														|  |                      }
 |  |                      }
 | 
											
												
													
														|  |                  }
 |  |                  }
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  | 
 |  | +                if ("setStatusBarVisibility".equalsIgnoreCase(api)) {
 | 
											
												
													
														|  | 
 |  | +                    //控制顶部状态显示隐藏
 | 
											
												
													
														|  | 
 |  | +                    JSONObject content = jsonObject.getJSONObject("content");
 | 
											
												
													
														|  | 
 |  | +                    int result = content.optInt("isVisibility", 1);//1显示 0隐藏
 | 
											
												
													
														|  | 
 |  | +                    if (result == 0) {
 | 
											
												
													
														|  | 
 |  | +                        QMUIStatusBarHelper.hideStatusBar(activity);
 | 
											
												
													
														|  | 
 |  | +                    } else {
 | 
											
												
													
														|  | 
 |  | +                        QMUIStatusBarHelper.showStatusBar(activity);
 | 
											
												
													
														|  | 
 |  | +                    }
 | 
											
												
													
														|  | 
 |  | +                    return;
 | 
											
												
													
														|  | 
 |  | +                }
 | 
											
												
													
														|  | 
 |  | +
 | 
											
												
													
														|  |                  if (TextUtils.equals(WebApi.SET_EVENT_TRACKING, api)) {
 |  |                  if (TextUtils.equals(WebApi.SET_EVENT_TRACKING, api)) {
 | 
											
												
													
														|  |                      //事件埋点
 |  |                      //事件埋点
 | 
											
												
													
														|  |                      JSONObject content = jsonObject.getJSONObject("content");
 |  |                      JSONObject content = jsonObject.getJSONObject("content");
 |