|
|
|
|
@ -1,5 +1,7 @@ |
|
|
|
|
package com.ynxbd.common; |
|
|
|
|
|
|
|
|
|
import cn.hutool.Hutool; |
|
|
|
|
import cn.hutool.core.util.PhoneUtil; |
|
|
|
|
import com.ynxbd.common.bean.Doctor; |
|
|
|
|
import com.ynxbd.common.bean.Patient; |
|
|
|
|
import com.ynxbd.common.bean.enums.MerchantEnum; |
|
|
|
|
@ -32,16 +34,16 @@ public class TestA { |
|
|
|
|
// 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 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) {
|
|
|
|
|
@ -62,10 +64,6 @@ public class TestA { |
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public static void main(String[] args) { |
|
|
|
|
List<Patient> patients = new PatientDao().selectListByPatientId("1"); |
|
|
|
|
System.out.println(patients); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// public static void main(String[] args) {
|
|
|
|
|
// System.out.println(AesWxHelper.encode("524404"));
|
|
|
|
|
|