|
|
@@ -18,6 +18,7 @@ import com.sheep.gamegroup.model.entity.PunchAndSign;
|
|
|
import com.sheep.gamegroup.model.entity.RechargeLog;
|
|
|
import com.sheep.gamegroup.model.entity.CommendTask;
|
|
|
import com.sheep.gamegroup.model.entity.SheepSignResult;
|
|
|
+import com.sheep.gamegroup.model.entity.UserEntity;
|
|
|
import com.sheep.gamegroup.model.entity.UserSign;
|
|
|
import com.sheep.gamegroup.model.util.SheepSubscriber;
|
|
|
import com.sheep.gamegroup.util.CommonUtil;
|
|
|
@@ -80,8 +81,6 @@ public class SignActivity extends BaseUMActivity {
|
|
|
ImageView sheep_sign_rectangle;
|
|
|
@BindView(R.id.sheep_sign_egg_rl)
|
|
|
View sheep_sign_egg_rl;//中奖的球与文本的容器
|
|
|
- // @BindView(R.id.sheep_sign_egg)
|
|
|
-// ImageView sheep_sign_egg;//中奖的球
|
|
|
@BindView(R.id.sheep_sign_egg_msg)
|
|
|
TextView sheep_sign_egg_msg;//中奖的球的文本
|
|
|
@BindView(R.id.sign_gua_jiang_qu)
|
|
|
@@ -91,6 +90,8 @@ public class SignActivity extends BaseUMActivity {
|
|
|
/* 是否有漏签 */
|
|
|
private boolean hasMissSign = false;
|
|
|
|
|
|
+ private UserEntity user;
|
|
|
+
|
|
|
@Override
|
|
|
protected int getLayoutId() {
|
|
|
return R.layout.activity_sign;
|
|
|
@@ -171,6 +172,7 @@ public class SignActivity extends BaseUMActivity {
|
|
|
|
|
|
@Override
|
|
|
public void initData() {
|
|
|
+ user = DataUtil.getInstance().getUserEntity();
|
|
|
initSigns();
|
|
|
initUserSignScratchAmount();
|
|
|
initUserSignLastScratch();
|
|
|
@@ -435,16 +437,20 @@ public class SignActivity extends BaseUMActivity {
|
|
|
if (lastUserSign.signShared()) {//可以进行补签且进行过分享操作,可以直接补签
|
|
|
signInSupplement();
|
|
|
} else {
|
|
|
- new ShareLinkConfig().setAction1(new Action1<View>() {
|
|
|
- @Override
|
|
|
- public void call(View view) {
|
|
|
- if (view == null) {
|
|
|
- ViewUtil.setEnabled(sign_now_but, true);
|
|
|
- } else {
|
|
|
- ViewUtil.setText((TextView) view.findViewById(R.id.ask_share_title), "邀请获得复活机会");
|
|
|
+ if (user.isVIP()) {
|
|
|
+ onResult(null);
|
|
|
+ } else {
|
|
|
+ new ShareLinkConfig().setAction1(new Action1<View>() {
|
|
|
+ @Override
|
|
|
+ public void call(View view) {
|
|
|
+ if (view == null) {
|
|
|
+ ViewUtil.setEnabled(sign_now_but, true);
|
|
|
+ } else {
|
|
|
+ ViewUtil.setText((TextView) view.findViewById(R.id.ask_share_title), "邀请获得复活机会");
|
|
|
+ }
|
|
|
}
|
|
|
- }
|
|
|
- }).toShare(this);
|
|
|
+ }).toShare(this);
|
|
|
+ }
|
|
|
}
|
|
|
} else {
|
|
|
signNow();
|