2
0
mirror of https://gitee.com/hotlcc/wechat4j.git synced 2025-12-24 02:49:37 +08:00

提交代码

This commit is contained in:
hotlcc
2018-07-25 15:46:34 +08:00
parent 5db685323f
commit c50e37415c
4 changed files with 29 additions and 24 deletions

View File

@@ -1050,7 +1050,7 @@ public class Wechat {
* @return
*/
public JSONObject sendText(String content, String toUserName) {
BaseRequest BaseRequest = new BaseRequest(wxsid, skey, wxuin);
BaseRequest baseRequest = new BaseRequest(wxsid, skey, wxuin);
String msgId = WechatUtil.createMsgId();
String loginUserName = getLoginUserName(false);
@@ -1066,7 +1066,7 @@ public class Wechat {
}
message.setType(MsgTypeEnum.TEXT_MSG.getCode());
JSONObject result = webWeixinApi.sendMsg(httpClient, passTicket, BaseRequest, message);
JSONObject result = webWeixinApi.sendMsg(httpClient, passTicket, baseRequest, message);
return result;
}

View File

@@ -528,7 +528,7 @@ public class WebWeixinApi {
*/
public JSONObject sendMsg(HttpClient httpClient,
String passticket,
BaseRequest BaseRequest,
BaseRequest baseRequest,
WxMessage message) {
try {
String url = new ST(PropertiesUtil.getProperty("webwx-url.webwxsendmsg_url"))
@@ -539,7 +539,7 @@ public class WebWeixinApi {
httpPost.setHeader("Content-type", ContentType.APPLICATION_JSON.toString());
JSONObject paramJson = new JSONObject();
paramJson.put("BaseRequest", BaseRequest);
paramJson.put("BaseRequest", baseRequest);
paramJson.put("Msg", message);
paramJson.put("Scene", 0);
System.out.println(paramJson.toJSONString());

View File

@@ -24,7 +24,7 @@ public class WxMessage {
}
public void setClientMsgId(String clientMsgId) {
clientMsgId = clientMsgId;
this.clientMsgId = clientMsgId;
}
public String getContent() {
@@ -32,7 +32,7 @@ public class WxMessage {
}
public void setContent(String content) {
content = content;
this.content = content;
}
public String getFromUserName() {
@@ -40,7 +40,7 @@ public class WxMessage {
}
public void setFromUserName(String fromUserName) {
fromUserName = fromUserName;
this.fromUserName = fromUserName;
}
public String getLocalID() {
@@ -48,7 +48,7 @@ public class WxMessage {
}
public void setLocalID(String localID) {
localID = localID;
this.localID = localID;
}
public String getToUserName() {
@@ -56,7 +56,7 @@ public class WxMessage {
}
public void setToUserName(String toUserName) {
toUserName = toUserName;
this.toUserName = toUserName;
}
public Integer getType() {