微信后端代码
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

59 lines
1.9 KiB

package com.ynxbd.common;
import com.ynxbd.common.bean.Patient;
import com.ynxbd.common.bean.enums.MerchantEnum;
import com.ynxbd.common.helper.common.HMACHelper;
import com.ynxbd.common.result.JsonResult;
import com.ynxbd.common.result.JsonResultEnum;
public class TestA {
// public static void main(String[] args) throws Exception {
// // System.out.println(AesWxHelper.decode(""));
// }
// public static void main(String[] args) {
// String KEY = "3431de05cbf9d0ffdbc064a352835981";
// String PARTNER_ID = "100000637";
//
// String timestamp = System.currentTimeMillis() + "";
// String str = PARTNER_ID + timestamp;
// String cacheSign = HMACHelper.sha256(str, KEY);
// System.out.println(timestamp);
// System.out.println(cacheSign);
// }
// public static void main(String[] args) {
// String KEY = "795b207e12572839976d9310bdde32be";
// String PARTNER_ID = "100000317";
//
// String timestamp = System.currentTimeMillis() + "";
// String str = PARTNER_ID + timestamp;
// String cacheSign = HMACHelper.sha256(str, KEY);
// System.out.println(timestamp);
// System.out.println(cacheSign);
// }
public static void main(String[] args) {
// String respXML = "<Response>\n" +
// "\t<TransactionCode>1002</TransactionCode>\n" +
// "\t<ResponseCode>0</ResponseCode>\n" +
// "\t<ResponseMessage>成功</ResponseMessage>\n" +
// "\t<PatientID>932606</PatientID>\n" +
// "\t<Empi_Id>300349719</Empi_Id>\n" +
// "\t<HISTrasNo>137087</HISTrasNo>\n" +
// "</Response>";
// JsonResult result = JsonResult.xmlToBean(respXML, JsonResultEnum.SYS_HIS);
// if (result == null) {
// return;
// }
// Patient patient = result.dataMapToBean(Patient.class);
// System.out.println(patient);
9 months ago
}
}