|
|
@@ -24,10 +24,12 @@ import com.sheep.gamegroup.greendao.DDProviderHelper;
|
|
|
import com.sheep.gamegroup.greendao.download.SheepAd;
|
|
|
import com.sheep.gamegroup.model.api.IWeb;
|
|
|
import com.sheep.gamegroup.model.entity.BaseMessage;
|
|
|
+import com.sheep.gamegroup.model.entity.BulletinEnty;
|
|
|
import com.sheep.gamegroup.model.entity.DialogConfig;
|
|
|
import com.sheep.gamegroup.model.entity.GameListTag;
|
|
|
import com.sheep.gamegroup.model.entity.GameListType;
|
|
|
import com.sheep.gamegroup.model.entity.Release_task;
|
|
|
+import com.sheep.gamegroup.model.entity.SystemNotification;
|
|
|
import com.sheep.gamegroup.model.entity.TaskEty;
|
|
|
import com.sheep.gamegroup.model.entity.WebParams;
|
|
|
import com.sheep.gamegroup.model.util.SheepSubscriber;
|
|
|
@@ -139,7 +141,7 @@ public class KFZSJs {
|
|
|
}
|
|
|
|
|
|
@JavascriptInterface
|
|
|
- public void gotoDownload(){
|
|
|
+ public void gotoDownload() {
|
|
|
Jump2View.getInstance().goActDownloadManager(activity);
|
|
|
}
|
|
|
|
|
|
@@ -498,6 +500,12 @@ public class KFZSJs {
|
|
|
}
|
|
|
|
|
|
@JavascriptInterface
|
|
|
+ public void goSystemNotification(String str) {
|
|
|
+ SystemNotification notification = JSONObject.parseObject(str, SystemNotification.class);
|
|
|
+ Jump2View.getInstance().onClickSystemNotification(activity, notification);
|
|
|
+ }
|
|
|
+
|
|
|
+ @JavascriptInterface
|
|
|
public void onPayCompleted(String orderNo, int status) {
|
|
|
Intent intent = new Intent();
|
|
|
intent.putExtra("orderno", orderNo);
|
|
|
@@ -512,7 +520,7 @@ public class KFZSJs {
|
|
|
}
|
|
|
|
|
|
@JavascriptInterface
|
|
|
- public boolean isVip(){
|
|
|
+ public boolean isVip() {
|
|
|
return DataUtil.getInstance().getUserEntity().isVIP();
|
|
|
}
|
|
|
|
|
|
@@ -672,8 +680,8 @@ public class KFZSJs {
|
|
|
}
|
|
|
|
|
|
@JavascriptInterface
|
|
|
- public void goActGameListByTag(int id, String name){
|
|
|
- GameListTag tag= new GameListTag();
|
|
|
+ public void goActGameListByTag(int id, String name) {
|
|
|
+ GameListTag tag = new GameListTag();
|
|
|
tag.setId(id);
|
|
|
tag.setName(name);
|
|
|
Jump2View.getInstance().goActPlayGameList(activity, tag);
|
|
|
@@ -718,6 +726,17 @@ public class KFZSJs {
|
|
|
}
|
|
|
|
|
|
@JavascriptInterface
|
|
|
+ public void goNotice(String text){
|
|
|
+ BulletinEnty item = JSONObject.parseObject(text, BulletinEnty.class);
|
|
|
+ Jump2View.getInstance().onClickNotice(activity, item);
|
|
|
+ }
|
|
|
+
|
|
|
+ @JavascriptInterface
|
|
|
+ public boolean isNewbie(){
|
|
|
+ return CommonUtil.getInstance().addNewTask(activity, DataUtil.getInstance().getUserEntity());
|
|
|
+ }
|
|
|
+
|
|
|
+ @JavascriptInterface
|
|
|
public void postEvent(int action, String data, String callback) {
|
|
|
EventBus.getDefault().post(new WebViewEvent(action, data, callback));
|
|
|
}
|