Update StateManager.java

This commit is contained in:
qxinfo2019 2020-01-11 13:33:10 +08:00 committed by GitHub
parent 0b14404196
commit 8250b79db8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -65,7 +65,8 @@ public class StateManager {
final String cKey = "STATECLASS-" + stateClass;
JSONArray options = (JSONArray) Application.getCommonCache().getx(cKey);
if (options != null) {
return options;
// 使用副本
return JSON.parseArray(options.toJSONString());
}
Class<?> state = StateHelper.getSatetClass(stateClass);