|
@@ -534,9 +534,9 @@ public class RuleGroupServiceImpl extends ServiceImpl<RuleGroupMapper, RuleGroup
|
|
newBid = calculatedValue(oldBid, operationType, operationValue, operationThreshold, maxValue, minValue, 1);
|
|
newBid = calculatedValue(oldBid, operationType, operationValue, operationThreshold, maxValue, minValue, 1);
|
|
}
|
|
}
|
|
//TODO
|
|
//TODO
|
|
- String code = externalLinkService.editBytedancePlanCpaBidOrBudget(accountId, planId.toString(), new BigDecimal(newBid.toString()), null, null);
|
|
|
|
|
|
+ Integer code = externalLinkService.editBytedancePlanCpaBidOrBudget(accountId, planId.toString(), new BigDecimal(newBid.toString()), null, null);
|
|
String message = "success";
|
|
String message = "success";
|
|
- if (code.equals("")) {
|
|
|
|
|
|
+ if (code == 0) {
|
|
alreadyOperatedList.add(obj);
|
|
alreadyOperatedList.add(obj);
|
|
} else {
|
|
} else {
|
|
message = "fail";
|
|
message = "fail";
|
|
@@ -561,9 +561,9 @@ public class RuleGroupServiceImpl extends ServiceImpl<RuleGroupMapper, RuleGroup
|
|
newBudget = calculatedValue(oldBudget, operationType, operationValue, operationThreshold, maxValue, minValue, 1);
|
|
newBudget = calculatedValue(oldBudget, operationType, operationValue, operationThreshold, maxValue, minValue, 1);
|
|
}
|
|
}
|
|
//TODO
|
|
//TODO
|
|
- String code = externalLinkService.editBytedancePlanCpaBidOrBudget(accountId, planId.toString(), null, null, newBudget);
|
|
|
|
|
|
+ Integer code = externalLinkService.editBytedancePlanCpaBidOrBudget(accountId, planId.toString(), null, null, newBudget);
|
|
String message = "success";
|
|
String message = "success";
|
|
- if (code.equals("")) {
|
|
|
|
|
|
+ if (code == 0) {
|
|
alreadyOperatedList.add(obj);
|
|
alreadyOperatedList.add(obj);
|
|
} else {
|
|
} else {
|
|
message = "fail";
|
|
message = "fail";
|
|
@@ -573,9 +573,9 @@ public class RuleGroupServiceImpl extends ServiceImpl<RuleGroupMapper, RuleGroup
|
|
//修改投放时间
|
|
//修改投放时间
|
|
} else if ("TIME".equals(operate) && !byteDancePlan.getScheduleTime().equals(operationThreshold)) {
|
|
} else if ("TIME".equals(operate) && !byteDancePlan.getScheduleTime().equals(operationThreshold)) {
|
|
//TODO
|
|
//TODO
|
|
- String code = externalLinkService.editBytedancePlanCpaBidOrBudget(accountId, planId.toString(), null, operationThreshold, null);
|
|
|
|
|
|
+ Integer code = externalLinkService.editBytedancePlanCpaBidOrBudget(accountId, planId.toString(), null, operationThreshold, null);
|
|
String message = "success";
|
|
String message = "success";
|
|
- if (code.equals("")) {
|
|
|
|
|
|
+ if (code == 0) {
|
|
alreadyOperatedList.add(obj);
|
|
alreadyOperatedList.add(obj);
|
|
} else {
|
|
} else {
|
|
message = "fail";
|
|
message = "fail";
|