加载配置打印日志
This commit is contained in:
@@ -20,6 +20,7 @@ public class PropertiesUtil {
|
||||
* 私有化构造函数,防止类被实例化
|
||||
*/
|
||||
private PropertiesUtil(String filePath, String encode) {
|
||||
System.out.println("PropertiesUtil init filePath: " + filePath);
|
||||
File file = new File(filePath);
|
||||
File[] array = file.listFiles();
|
||||
for(File childfile : array) {
|
||||
@@ -178,7 +179,7 @@ public class PropertiesUtil {
|
||||
paramMap.put(String.valueOf(entry.getKey()), String.valueOf(entry.getValue()));
|
||||
}
|
||||
allParam.put(fileName, paramMap);
|
||||
System.out.println("loadConfig " + fileName + " " + allParam);
|
||||
System.out.println("loadConfig " + fileName + " keys: " + allParam.keySet());
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
} finally {
|
||||
|
||||
@@ -45,19 +45,13 @@ public class MossApiTest {
|
||||
logger.info("res={}",gson.toJson(res));
|
||||
}
|
||||
// 订单支付-独立支付
|
||||
//{"order_no":"PY17567817943290000000362",
|
||||
// "total_amount":"2.00",
|
||||
// "mer_no":"M00000233",
|
||||
// "remark":"学费缴纳",
|
||||
// "notify_url":"https://zj.zjhzzsb.com/api/pay/lkl/notify",
|
||||
// "pay_scene":"0","account_type":"ALIPAY,WECHAT,UQRCODEPAY","subject":"学费缴纳协议 - 梦想班(2026)"}
|
||||
@Test
|
||||
public void testOrderPay(){
|
||||
Gson gson = new GsonBuilder().disableHtmlEscaping().create();
|
||||
IMossApiService mossApi = new MossApiServiceImpl();
|
||||
OrderPayReq req = new OrderPayReq();
|
||||
req.setOrder_no("PY17567817943290000000362");
|
||||
req.setTotal_amount("1");
|
||||
req.setOrder_no("PY17567832821250000000317");
|
||||
req.setTotal_amount("3");
|
||||
req.setMer_no("M00000233");
|
||||
req.setRemark("学费缴纳");
|
||||
req.setNotify_url("https://zj.zjhzzsb.com/api/pay/lkl/notify");
|
||||
|
||||
Reference in New Issue
Block a user