Commit e9babf38 authored by 刘亚萍's avatar 刘亚萍

Merge branch 'dev_lyp_20220722' into 'test'

fix

See merge request !1
parents ca75d818 a76279dd
...@@ -61,7 +61,9 @@ public class ReadingDataApi { ...@@ -61,7 +61,9 @@ public class ReadingDataApi {
if(readingData==null){ if(readingData==null){
return new TechMessage(ResultEnum.ReadingDataInvalid); return new TechMessage(ResultEnum.ReadingDataInvalid);
} }
if(readingData.getId()==null||readingData.getActor()==null||readingData.getVerb()==null||readingData.getObject()==null){ if (readingData.getId() == null || readingData.getActor() == null
|| readingData.getVerb() == null || readingData.getObject() == null
|| readingData.getResult() == null || readingData.getContext() == null) {
return new TechMessage(ResultEnum.ReadingDataInvalid); return new TechMessage(ResultEnum.ReadingDataInvalid);
} }
// 日志 // 日志
...@@ -108,7 +110,9 @@ public class ReadingDataApi { ...@@ -108,7 +110,9 @@ public class ReadingDataApi {
return new TechMessage(ResultEnum.ReadingDataInvalid); return new TechMessage(ResultEnum.ReadingDataInvalid);
} }
for(ReadingData readingData : readingDatas) { for(ReadingData readingData : readingDatas) {
if (readingData.getId() == null || readingData.getActor() == null || readingData.getVerb() == null || readingData.getObject() == null) { if (readingData.getId() == null || readingData.getActor() == null
|| readingData.getVerb() == null || readingData.getObject() == null
|| readingData.getContext() == null || readingData.getResult() == null) {
return new TechMessage(ResultEnum.ReadingDataInvalid); return new TechMessage(ResultEnum.ReadingDataInvalid);
} }
} }
......
...@@ -34,6 +34,12 @@ public class ReadingData implements CacheDimensionDocument { ...@@ -34,6 +34,12 @@ public class ReadingData implements CacheDimensionDocument {
@DocumentField @DocumentField
private Map<String, Object> object; private Map<String, Object> object;
@DocumentField
private Map<String, Object> result;
@DocumentField
private Map<String, Object> context;
@DocumentField @DocumentField
private Boolean valid; private Boolean valid;
......
...@@ -38,4 +38,7 @@ oauthclient: ...@@ -38,4 +38,7 @@ oauthclient:
- clientName: 上图 - clientName: 上图
clientId: shangtuClentId clientId: shangtuClentId
clientSecret: shangtuClientSecret clientSecret: shangtuClientSecret
- clientName: 电子书
clientId: dianzishuClentId
clientSecret: dianzishuClientSecret
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment