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 {
if(readingData==null){
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);
}
// 日志
......@@ -108,7 +110,9 @@ public class ReadingDataApi {
return new TechMessage(ResultEnum.ReadingDataInvalid);
}
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);
}
}
......
......@@ -34,6 +34,12 @@ public class ReadingData implements CacheDimensionDocument {
@DocumentField
private Map<String, Object> object;
@DocumentField
private Map<String, Object> result;
@DocumentField
private Map<String, Object> context;
@DocumentField
private Boolean valid;
......
......@@ -38,4 +38,7 @@ oauthclient:
- clientName: 上图
clientId: shangtuClentId
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