ht
parent
36dfd630f7
commit
36f91bf5e4
|
|
@ -75,7 +75,7 @@ public class Controller extends com.jfinal.core.Controller{
|
|||
String[] keysToUnset = getParaValues("keys");
|
||||
List<Bson> ops = new ArrayList<>();
|
||||
|
||||
if (action.equals("unset")) {
|
||||
if ("unset".equals(action)) {
|
||||
for (String key : keysToUnset) {
|
||||
if (key.equals("id")) continue;
|
||||
ops.add(Updates.unset(key));
|
||||
|
|
@ -84,7 +84,7 @@ public class Controller extends com.jfinal.core.Controller{
|
|||
Map<String, String[]> paraMap = getParaMap();
|
||||
|
||||
paraMap.forEach((key, arr) -> {
|
||||
if (!key.equals("id")) {
|
||||
if (!"id".equals(key) && !"action".equals(key)) {
|
||||
ops.add(Updates.set(key, arr[0]));
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue