|
@@ -833,8 +833,9 @@ public class ApiController {
|
|
|
|
|
|
R r = wmTaskContentService.saveTaskContent(wmTaskContent);
|
|
|
|
|
|
- if (r.getCode() == CommonConstants.SUCCESS) {
|
|
|
+ if (CommonConstants.SUCCESS == r.getCode()) {
|
|
|
String key = String.format(CacheConstants.TASK_CONTENT_DRAFT, wmTaskContent.getTemp30(), user.getId());
|
|
|
+ log.info("删除草稿:{}", key);
|
|
|
redisTemplate.delete(key);
|
|
|
}
|
|
|
|