Authored by qinchao

remove useless

... ... @@ -47,10 +47,6 @@ public class StoreSellerServiceImpl implements IStoredSellerService {
@Autowired
StoredSellerCacheService storedSellerCacheService;
//@Value("${zhimacert.switch:true}")
//private boolean zhiMaCertSwitch;
@Autowired
private SellerService sellerService;
... ... @@ -98,16 +94,7 @@ public class StoreSellerServiceImpl implements IStoredSellerService {
logger.info("StoredSellerServiceImpl entryStatus uid is {} ",uid);
Boolean isZhiMaCert=false;
ZhiMaCert zhiMaCert = null;
/*
if(zhiMaCertSwitch){
zhiMaCert = getZhiMaCertInfo(uid);
if(null != zhiMaCert){
isZhiMaCert = true;
}
}else{
isZhiMaCert = true;
}
*/
zhiMaCert = getZhiMaCertInfo(uid);
if(null != zhiMaCert){
isZhiMaCert = true;
... ... @@ -254,11 +241,6 @@ public class StoreSellerServiceImpl implements IStoredSellerService {
ZhiMaCert zhiMaCert = getZhiMaCertInfo(uid);
int breakZhiMaCert=0;
//芝麻认证没开启,并且没有认证
/*if(!zhiMaCertSwitch&&zhiMaCert==null){
zhiMaCert = new ZhiMaCert();
breakZhiMaCert=1;
}*/
if(null == zhiMaCert){
logger.error("StoredSellerServiceImpl get zhi ma cert info is null , uid is {} ",uid);
... ... @@ -309,14 +291,4 @@ public class StoreSellerServiceImpl implements IStoredSellerService {
return null;
}
/*private boolean isPhotoCheckExceedLimit(int targetUid) {
ApiResponse<Boolean> resp = ufoServiceCaller.call("ufo.user.photoCheckExceedLimit", ApiResponse.class, targetUid);
if (resp != null&&resp.getCode()==200) {
if (resp.getData() != null) {
return (Boolean)resp.getData();
}
}
return false;
}*/
}
... ...
... ... @@ -70,11 +70,6 @@ public class RealNameAuthorizeServiceImpl implements IRealNameAuthorizeService {
@Autowired
private CertPhotoSwitchComponent certPhotoSwitchComponent;
//@Value("${zhimacert.switch:true}")
//private boolean zhiMaCertSwitch;
@Autowired
private ConfigReader configReader;
... ... @@ -280,11 +275,6 @@ public class RealNameAuthorizeServiceImpl implements IRealNameAuthorizeService {
}
public boolean isValidZhiMaCert(int uid){
//如果芝麻认知没有开启,默认芝麻认证通过
/*if(!zhiMaCertSwitch){
return true;
}*/
//否则,从db查询认证信息
if(null!=this.getValidZhiMaCert(uid)){
return true;
... ...