| | |
| | | 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; |
| | |
| | | |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import java.util.Arrays; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @ClassName WechatController |
| | |
| | | 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); |