java110
2020-06-22 4ed7ff50eecdc85c5bf10e6534757900f52762cf
service-front/src/main/java/com/java110/front/controller/wechat/WechatGatewayController.java
@@ -6,6 +6,8 @@
import com.java110.core.context.IPageData;
import com.java110.core.context.PageData;
import com.java110.core.factory.AuthenticationFactory;
import com.java110.dto.smallWeChat.SmallWeChatDto;
import com.java110.dto.smallWechatAttr.SmallWechatAttrDto;
import com.java110.front.smo.wechatGateway.IWechatGatewaySMO;
import com.java110.utils.cache.MappingCache;
import com.java110.utils.constant.WechatConstant;
@@ -25,6 +27,7 @@
import javax.servlet.http.HttpServletRequest;
import java.util.Arrays;
import java.util.List;
/**
 * @ClassName WechatController
@@ -57,6 +60,25 @@
        String timestamp = request.getParameter("timestamp");
        String nonce = request.getParameter("nonce");
        String echostr = request.getParameter("echostr");
        String communityId = request.getParameter("communityId");
        String java110AppId = request.getParameter("java110AppId");
        IPageData pd = PageData.newInstance().builder("-1", "", "", "",
                "", "", "", "",
                java110AppId);
        if(!StringUtil.isEmpty(communityId)){
            SmallWeChatDto smallWeChatDto = new SmallWeChatDto();
            smallWeChatDto.setObjType(SmallWeChatDto.OBJ_TYPE_COMMUNITY);
            smallWeChatDto.setObjId(communityId);
            smallWeChatDto = wechatGatewaySMOImpl.getSmallWechat(pd,smallWeChatDto);
            if(smallWeChatDto !=null){
                List<SmallWechatAttrDto> smallWechatAttrDtos = smallWeChatDto.getSmallWechatAttrs();
                if(smallWechatAttrDtos != null){
                   // for()
                }
            }
        }
        String responseStr = "";
        logger.debug("token = " + token + "||||" + "signature = " + signature + "|||" + "timestamp = "
                + timestamp + "|||" + "nonce = " + nonce + "|||" + "echostr = " + echostr);