|
@@ -9,8 +9,10 @@ import android.view.WindowManager;
|
|
|
import android.webkit.JavascriptInterface;
|
|
|
|
|
|
import com.alibaba.android.arouter.launcher.ARouter;
|
|
|
+import com.cooleshow.base.common.WebApi;
|
|
|
import com.cooleshow.base.common.WebConstants;
|
|
|
import com.cooleshow.base.router.RouterPath;
|
|
|
+import com.cooleshow.student.helper.EventHelper;
|
|
|
import com.cooleshow.usercenter.constants.UserConstants;
|
|
|
import com.cooleshow.usercenter.helper.UserHelper;
|
|
|
import com.gyf.immersionbar.ImmersionBar;
|
|
@@ -313,6 +315,16 @@ public class JsInterfaceAccomPanyUtils extends Object {
|
|
|
onListener.savePicture(content.getString("base64"),content.getString("uuid"));
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ if (TextUtils.equals(WebApi.SET_EVENT_TRACKING, api)) {
|
|
|
+ //事件埋点
|
|
|
+ JSONObject content = jsonObject.getJSONObject("content");
|
|
|
+ String eventId = content.optString("type");
|
|
|
+ if (!TextUtils.isEmpty(eventId)) {
|
|
|
+ EventHelper.addEvent(eventId);
|
|
|
+ }
|
|
|
+ return;
|
|
|
+ }
|
|
|
} catch (Exception e) {
|
|
|
|
|
|
}
|