Commit abe54b77 by qwmqiuwenmin

fix

parent 9c3b9484
......@@ -573,8 +573,12 @@ public class WxEnterpriseController extends WebBaseController{
public HaobanResponse getFreshOnOff(){
LoginVO login = (LoginVO) AuthRequestUtil.getLoginUser();
String wxEnterpriseId = login.getWxEnterpriseId();
String dateKey = "haoban_fresh-wx-friend-enterprise" + wxEnterpriseId;
return resultResponse(HaoBanErrCode.ERR_1,RedisUtil.getCache(dateKey) != null);
String dateKey = "haoban_fresh-wx-friend-enterprise";
Object value = RedisUtil.getCache(dateKey);
if(value != null){
return resultResponse(HaoBanErrCode.ERR_1,value.toString().contains(wxEnterpriseId));
}
return resultResponse(HaoBanErrCode.ERR_1,false);
}
}
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