|
|
@@ -176,7 +176,7 @@ public class TagAliasOperatorHelper {
|
|
|
message.obj = tagAliasBean;
|
|
|
delaySendHandler.sendMessageDelayed(message,1000*60);
|
|
|
String logs =getRetryStr(tagAliasBean.isAliasAction, tagAliasBean.action,errorCode);
|
|
|
- ExampleUtil.showToast(logs, context);
|
|
|
+ ExampleUtil.showToast(logs);
|
|
|
return true;
|
|
|
}
|
|
|
}
|
|
|
@@ -196,7 +196,7 @@ public class TagAliasOperatorHelper {
|
|
|
delaySendHandler.sendMessageDelayed(message,1000*60);
|
|
|
String str = "Failed to set mobile number due to %s. Try again after 60s.";
|
|
|
str = String.format(Locale.ENGLISH,str,(errorCode == 6002 ? "timeout" : "server internal error”"));
|
|
|
- ExampleUtil.showToast(str, context);
|
|
|
+ ExampleUtil.showToast(str);
|
|
|
return true;
|
|
|
}
|
|
|
return false;
|
|
|
@@ -233,7 +233,7 @@ public class TagAliasOperatorHelper {
|
|
|
//根据sequence从之前操作缓存中获取缓存记录
|
|
|
TagAliasBean tagAliasBean = (TagAliasBean)setActionCache.get(sequence);
|
|
|
if(tagAliasBean == null){
|
|
|
- ExampleUtil.showToast("获取缓存记录失败", context);
|
|
|
+ ExampleUtil.showToast("获取缓存记录失败");
|
|
|
return;
|
|
|
}
|
|
|
if(jPushMessage.getErrorCode() == 0){
|
|
|
@@ -241,7 +241,7 @@ public class TagAliasOperatorHelper {
|
|
|
setActionCache.remove(sequence);
|
|
|
String logs = getActionStr(tagAliasBean.action)+" tags success";
|
|
|
LogUtil.println(TAG,logs);
|
|
|
- ExampleUtil.showToast(logs, context);
|
|
|
+ ExampleUtil.showToast(logs);
|
|
|
}else{
|
|
|
String logs = "Failed to " + getActionStr(tagAliasBean.action)+" tags";
|
|
|
if(jPushMessage.getErrorCode() == 6018){
|
|
|
@@ -251,7 +251,7 @@ public class TagAliasOperatorHelper {
|
|
|
logs += ", errorCode:" + jPushMessage.getErrorCode();
|
|
|
LogUtil.println(TAG, logs);
|
|
|
if(!RetryActionIfNeeded(jPushMessage.getErrorCode(),tagAliasBean)) {
|
|
|
- ExampleUtil.showToast(logs, context);
|
|
|
+ ExampleUtil.showToast(logs);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
@@ -262,7 +262,7 @@ public class TagAliasOperatorHelper {
|
|
|
//根据sequence从之前操作缓存中获取缓存记录
|
|
|
TagAliasBean tagAliasBean = (TagAliasBean)setActionCache.get(sequence);
|
|
|
if(tagAliasBean == null){
|
|
|
- ExampleUtil.showToast("获取缓存记录失败", context);
|
|
|
+ ExampleUtil.showToast("获取缓存记录失败");
|
|
|
return;
|
|
|
}
|
|
|
if(jPushMessage.getErrorCode() == 0){
|
|
|
@@ -270,12 +270,12 @@ public class TagAliasOperatorHelper {
|
|
|
setActionCache.remove(sequence);
|
|
|
String logs = getActionStr(tagAliasBean.action)+" tag "+jPushMessage.getCheckTag() + " bind state success,state:"+jPushMessage.getTagCheckStateResult();
|
|
|
LogUtil.println(TAG,logs);
|
|
|
- ExampleUtil.showToast(logs, context);
|
|
|
+ ExampleUtil.showToast(logs);
|
|
|
}else{
|
|
|
String logs = "Failed to " + getActionStr(tagAliasBean.action)+" tags, errorCode:" + jPushMessage.getErrorCode();
|
|
|
LogUtil.println(TAG, logs);
|
|
|
if(!RetryActionIfNeeded(jPushMessage.getErrorCode(),tagAliasBean)) {
|
|
|
- ExampleUtil.showToast(logs, context);
|
|
|
+ ExampleUtil.showToast(logs);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
@@ -286,7 +286,7 @@ public class TagAliasOperatorHelper {
|
|
|
//根据sequence从之前操作缓存中获取缓存记录
|
|
|
TagAliasBean tagAliasBean = (TagAliasBean)setActionCache.get(sequence);
|
|
|
if(tagAliasBean == null){
|
|
|
- ExampleUtil.showToast("获取缓存记录失败", context);
|
|
|
+ ExampleUtil.showToast("获取缓存记录失败");
|
|
|
return;
|
|
|
}
|
|
|
if(jPushMessage.getErrorCode() == 0){
|
|
|
@@ -294,12 +294,12 @@ public class TagAliasOperatorHelper {
|
|
|
setActionCache.remove(sequence);
|
|
|
String logs = getActionStr(tagAliasBean.action)+" alias success";
|
|
|
LogUtil.println(TAG,logs);
|
|
|
- ExampleUtil.showToast(logs, context);
|
|
|
+ ExampleUtil.showToast(logs);
|
|
|
}else{
|
|
|
String logs = "Failed to " + getActionStr(tagAliasBean.action)+" alias, errorCode:" + jPushMessage.getErrorCode();
|
|
|
LogUtil.println(TAG, logs);
|
|
|
if(!RetryActionIfNeeded(jPushMessage.getErrorCode(),tagAliasBean)) {
|
|
|
- ExampleUtil.showToast(logs, context);
|
|
|
+ ExampleUtil.showToast(logs);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
@@ -315,7 +315,7 @@ public class TagAliasOperatorHelper {
|
|
|
String logs = "Failed to set mobile number, errorCode:" + jPushMessage.getErrorCode();
|
|
|
LogUtil.println(TAG, logs);
|
|
|
if(!RetrySetMObileNumberActionIfNeeded(jPushMessage.getErrorCode(),jPushMessage.getMobileNumber())){
|
|
|
- ExampleUtil.showToast(logs, context);
|
|
|
+ ExampleUtil.showToast(logs);
|
|
|
}
|
|
|
}
|
|
|
}
|