Browse Source

Merge branch 'dev/2024/0822/update-app-Y' of Harper/feifan-backend-zx-app into master

修改用户是否关注公众号
Yangzw 2 months ago
parent
commit
03d219820e

+ 1 - 1
feifan-module-member/feifan-module-member-biz/src/main/java/cn/newfeifan/mall/module/member/service/user/MemberUserServiceImpl.java

@@ -531,7 +531,7 @@ public class MemberUserServiceImpl implements MemberUserService {
         if(subscribe == null){
             Object errCode = responseJsonObject.get("errcode");
 //            如果微信的accessToken失效,则重新获取,最多重试3次
-            if(errCode.equals("40001") && maxRetries <= 3){
+            if(errCode.toString().equals("40001") && maxRetries <= 3){
                 stringRedisTemplate.delete(WX_TICK_KEY_APPID);
                 isSubscribe(openid, maxRetries + 1);
             }