| | |
| | | |
| | | import com.alibaba.fastjson.JSONArray; |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.java110.api.smo.DefaultAbstractComponentSMO; |
| | | import com.java110.core.base.smo.front.AbstractFrontServiceSMO; |
| | | import com.java110.core.context.IPageData; |
| | | import com.java110.core.factory.WechatFactory; |
| | |
| | | import com.java110.utils.util.BeanConvertUtil; |
| | | import com.java110.utils.util.StringUtil; |
| | | import org.slf4j.Logger; |
| | | import org.slf4j.LoggerFactory; |
| | | import com.java110.core.log.LoggerFactory; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.http.HttpMethod; |
| | | import org.springframework.http.HttpStatus; |
| | |
| | | * wx登录 |
| | | */ |
| | | @Service("wechatGatewaySMOImpl") |
| | | public class WechatGatewaySMOImpl extends AbstractFrontServiceSMO implements IWechatGatewaySMO { |
| | | public class WechatGatewaySMOImpl extends DefaultAbstractComponentSMO implements IWechatGatewaySMO { |
| | | |
| | | private final static Logger logger = LoggerFactory.getLogger(WechatGatewaySMOImpl.class); |
| | | |
| | |
| | | if (noBindOwnerResponseMessage.indexOf("?") > -1) { |
| | | noBindOwnerResponseMessage += ("&wAppId=" + WechatFactory.getAppId(wId)); |
| | | } else { |
| | | noBindOwnerResponseMessage += ("?wAppId=" + WechatFactory.getAppId(wId)); |
| | | // noBindOwnerResponseMessage += ("?wAppId=" + WechatFactory.getAppId(wId)); |
| | | } |
| | | } |
| | | } |
| | |
| | | |
| | | //List<SmallWeChatDto> smallWeChatDtos = super.getForApis(pd, smallWeChatDto, ServiceCodeSmallWeChatConstant.LIST_SMALL_WE_CHATS, SmallWeChatDto.class); |
| | | ResponseEntity<String> responseEntity = this.callCenterService(restTemplate, pd, "", |
| | | ServiceConstant.SERVICE_API_URL + "/api/smallWeChat.listSmallWeChats?appId=" |
| | | "smallWeChat.listSmallWeChats?appId=" |
| | | + smallWeChatDto.getAppId() + "&page=1&row=1", HttpMethod.GET); |
| | | |
| | | if (responseEntity.getStatusCode() != HttpStatus.OK) { |