|
@@ -159,14 +159,7 @@ function cachePredictorState() {
|
|
|
if(data.length < 50){
|
|
|
logger.info(`可能出错的data~~: ${data}`)
|
|
|
}
|
|
|
- let result = JSON.parse(data);
|
|
|
- if (predictorState.length === 0) {
|
|
|
- value.predictorState = result
|
|
|
- } else {
|
|
|
- if (predictorState[0] !== predictorState[0]) {
|
|
|
- value.predictorState = result
|
|
|
- }
|
|
|
- }
|
|
|
+ value.predictorState = JSON.parse(data)
|
|
|
}).catch((error) => {
|
|
|
logger.info(`异步缓存predictorState异常~~ ${error.message}`)
|
|
|
});
|