修改短信查询功能

This commit is contained in:
tangfutang 2022-03-18 11:20:52 +08:00
parent 0697509a39
commit 2d42b1f886

View File

@ -81,8 +81,8 @@ public class SmsController {
String sendPassword = messageConfig.getAttribute("SENDER_PASSWORD_").getString();
String sendUrl = messageConfig.getAttribute("SEND_MESSAGE_URL_").getString();
HttpClient httpClient = new HttpClient();
//余额查询的接口url
String url = sendUrl+"?pwd="+sendPassword+"&username="+sendUsername;
//余额查询的接口url,查询余额连接不一样不能从页面配置的获取
String url = "http://api.rcs6g.com/getBalance.api.php?pwd="+sendPassword+"&username="+sendUsername;
GetMethod getMethod = new GetMethod(url);
int statusCode = httpClient.executeMethod(getMethod);
System.out.println("״̬Âë:"+statusCode);