1. POM更新
POM @cncauthserver&CncResource: cnclibs 1.2.3 & EduDataType 1.0.6.6
POM @xxauth: cnclibs 1.2.3 & EduDataType 1.0.6.6
2.new package: "relation"@xxauth
new class: "xxRelation.java"@xxauth
new file: "relation.spi.ITSRelation"@META-INF.service package
內容為;
relation.XXRelation
在xxauth專案下新增package:relation
新建java class: XXRelation
內容如下
package relation;
import models.edumodel.relations.Relation;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import relation.spi.ITSRelation;
import tools.IUniqueIDType;
import java.util.Map;
public class XXRelation implements ITSRelation {
private static final Logger logger = LoggerFactory.getLogger(MZRelation.class);
@Override
public Relation getRelation(Map<IUniqueIDType, String> uniqueIDTypeStringMap) {
return new Relation();
}
}
implement new method@xxauth.java
doAuthenticatewSeatNo
doSyncDatawSeatNo
@Override
public ExchangeDataModelwSeatNo doAuthenticatewSeatNo(String user, String passwd) {
return null;
}
file modified:
1.
implement new method@src/main/java/syncdata/xxsyncdata.java
doAuthenticatewSeatNo
doSyncDatawSeatNo
@Override
public List<ExchangeDataModelwSeatNo> doSyncDatawSeatNo(Map<IUniqueIDType, String> uniqueIDTypeStringMap) {
return null;
}
CNCAPIwSeatNoResource.java@CncResource
CNCOauthwSeatNoResource.java@CncResource
xxSyncData.java@xxauth
xxauth.java@xxauth
AuthDemo.java@cncauthdemo
CNCXXAccountSource.java@cncaccountdatasource
XXDataRequest.java@cncaccountdatasource
mongo修改index增加查詢時間檢查
use xxstore
db.authcodestore.createIndex({"created":-1})
db.authcodestore.createIndex({"expires":-1})
mongo刪除過多token&authcode紀錄
use xxstore
db.authcodestore.remove({})
db.cnctokenstore.remove({})