Commit a9450143cd84b9b0722713236e604ffd369655f0
1 parent
970148d4ad
Exists in
master
and in
6 other branches
1
Showing 1 changed file with 4 additions and 0 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/MongoSyncController.java
View file @
a945014
... | ... | @@ -25,6 +25,10 @@ |
25 | 25 | @RequestMapping(method = RequestMethod.POST,value = "/syncmongo") |
26 | 26 | public String syncmongo(String action, String token, String className, String jsonData, String id){ |
27 | 27 | if (StringUtils.isNotBlank(token) && mongo_sync_token.equals(token)) { |
28 | + //如果为空直接返回成功 | |
29 | + if(StringUtils.isEmpty(jsonData)){ | |
30 | + return "success"; | |
31 | + } | |
28 | 32 | boolean boo = mongoSyncService.syncData(action,id, className, jsonData); |
29 | 33 | if (boo) { |
30 | 34 | return "success"; |