wuxw
2025-03-17 5700f42a37a2f9ecc27161e2b0559a820d320f6b
service-user/src/main/java/com/java110/user/cmd/wechat/GetWechatMiniOpenIdCmd.java
@@ -14,6 +14,8 @@
import com.java110.utils.constant.WechatConstant;
import com.java110.utils.exception.CmdException;
import com.java110.utils.util.Assert;
import com.java110.utils.util.StringUtil;
import com.java110.vo.ResultVo;
import org.slf4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
@@ -56,6 +58,10 @@
        } else {
            SmallWeChatDto smallWeChatDto = new SmallWeChatDto();
            smallWeChatDto.setAppId(reqJson.getString("appId"));
            String communityId = reqJson.getString("communityId");
            if (!StringUtil.isEmpty(communityId)) {
                smallWeChatDto.setObjId(communityId);
            }
            List<SmallWeChatDto> smallWeChatDtos = smallWechatV1InnerServiceSMOImpl.querySmallWechats(smallWeChatDto);
            //todo 读取全局
@@ -89,5 +95,7 @@
        }
        String openId = responseObj.getString("openid");
        context.setResponseEntity(ResultVo.createResponseEntity(openId));
    }
}