|
|
@@ -15,7 +15,7 @@ import com.alibaba.fastjson.JSON;
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
import com.sheep.gamegroup.model.api.BaseMessageConverter;
|
|
|
import com.sheep.gamegroup.model.entity.BaseMessage;
|
|
|
-import com.sheep.gamegroup.model.entity.SystemNotification;
|
|
|
+import com.sheep.gamegroup.model.entity.ScreenShotConfig;
|
|
|
import com.sheep.gamegroup.model.entity.UserEntity;
|
|
|
import com.sheep.gamegroup.model.util.AutoTaskListUtil;
|
|
|
import com.sheep.gamegroup.model.util.SheepSubscriber;
|
|
|
@@ -305,9 +305,11 @@ public class DataUtil {
|
|
|
.subscribe(new SheepSubscriber<BaseMessage>(SheepApp.getInstance()) {
|
|
|
@Override
|
|
|
public void onNext(BaseMessage baseMessage) {
|
|
|
- boolean isOpen = baseMessage.getData(Boolean.class);
|
|
|
- IS_USE_SCREEN_SHOT = isOpen;
|
|
|
- IS_LISTEN_SCREEN_SHOT = isOpen;
|
|
|
+ ScreenShotConfig config = baseMessage.getData(ScreenShotConfig.class);
|
|
|
+ if(config != null) {
|
|
|
+ IS_USE_SCREEN_SHOT = config.isNeed();
|
|
|
+ IS_LISTEN_SCREEN_SHOT = config.isNeed();
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
@Override
|