Authored by qinchao

增加接口:清芝麻认证的信息

... ... @@ -102,8 +102,10 @@ public class RealNameAuthorizeController {
@RequestMapping(params = "method=ufo.user.clearZhiMaCertInfo")
public ApiResponse clearZhiMaCertInfo(@RequestParam("uid") Integer uid) throws GatewayException {
logger.info("enter realNameAuthorize.clearZhiMaCertInfo param uid is {}", uid);
realNameAuthorizeService.clearZhiMaCertInfo(uid);
return new ApiResponse();
int deleteNum = realNameAuthorizeService.clearZhiMaCertInfo(uid);
ApiResponse apiResponse = new ApiResponse();
apiResponse.setData(deleteNum);
return apiResponse;
}
@RequestMapping(params = "method=ufo.user.zhiMaCertInfo")
... ...
... ... @@ -20,7 +20,7 @@ public interface IRealNameAuthorizeService {
boolean isValidZhiMaCert(int uid);
void clearZhiMaCertInfo(Integer uid);
int clearZhiMaCertInfo(Integer uid);
ZhiMaCert getValidZhiMaCert(int uid);
... ...
... ... @@ -295,14 +295,16 @@ public class RealNameAuthorizeServiceImpl implements IRealNameAuthorizeService {
* 清芝麻认证的缓存信息
*/
@Override
public void clearZhiMaCertInfo(Integer uid){
public int clearZhiMaCertInfo(Integer uid){
logger.info("RealNameAuthorizeServiceImpl clearCacheZhiMaCertInfo uid is {} ", uid);
int result = 0;
if (uid!=null && uid > 0 ){
int result = zhiMaCertDao.deleteByUid(uid);
result = zhiMaCertDao.deleteByUid(uid);
logger.info("RealNameAuthorizeServiceImpl clearCacheZhiMaCertInfo delete uid{} ,delete result is {}", uid, result);
cacheService.delZhiMaCert(uid);
}
return result;
}
@Override
... ...