!108 2022-1-25 Carl

Merge pull request !108 from Admin/sit-Carl-V3
This commit is contained in:
Admin 2022-01-25 10:28:15 +00:00 committed by Gitee
commit e6acd8b55f
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 2 additions and 1 deletions

View File

@ -56,6 +56,7 @@ public class GoodService {
MapRemoveNullUtil.removeNullEntry(paramMap); MapRemoveNullUtil.removeNullEntry(paramMap);
paramMap.put("secret","H5@2021"); paramMap.put("secret","H5@2021");
paramMap.put("channelId","15"); paramMap.put("channelId","15");
paramMap.put("isSales","1");
String sb = SmartHttpUtil.sendPostForm(url+"product/query",paramMap,null); String sb = SmartHttpUtil.sendPostForm(url+"product/query",paramMap,null);
JSONObject jsonObject = JSONObject.parseObject(sb); JSONObject jsonObject = JSONObject.parseObject(sb);
String result = AESUtil.decryptLinux(jsonObject.getString("data"), AESUtil.KEY); String result = AESUtil.decryptLinux(jsonObject.getString("data"), AESUtil.KEY);

View File

@ -14,7 +14,7 @@ public class SmsUtil {
SMSServiceSoap_BindingStub stub = (SMSServiceSoap_BindingStub) service.getSMSServiceSoap(protAddres); SMSServiceSoap_BindingStub stub = (SMSServiceSoap_BindingStub) service.getSMSServiceSoap(protAddres);
java.util.Calendar cal= java.util.Calendar.getInstance(); java.util.Calendar cal= java.util.Calendar.getInstance();
cal.set(2021,12,31,0,0,0); cal.set(2021,12,31,0,0,0);
String sMSGID = stub.sendSMS(number,8,"您好,您的验证码:" + verifyNumber + ", 5分钟有效期 【皇家宠物食品】",cal,"7101567100151709"); String sMSGID = stub.sendSMS(number,8,"您好,您的验证码:" + verifyNumber + ", 5分钟有效期 ",cal,"7101567100151709");
if (sMSGID.startsWith("OK:")) if (sMSGID.startsWith("OK:"))
System.out.println("Send successful!"); System.out.println("Send successful!");
System.out.println("msgId = " + sMSGID); System.out.println("msgId = " + sMSGID);