|
|
|
@@ -123,15 +123,15 @@ public class PosAppTest { |
|
|
|
} |
|
|
|
|
|
|
|
@Test |
|
|
|
public void getMemTest() throws Exception { |
|
|
|
public void checkMemTest() throws Exception { |
|
|
|
Map<String, String> reqObj = new HashMap<>(); |
|
|
|
reqObj.put(WxPayConstant.DEV_ID, devId); |
|
|
|
reqObj.put(WxPayConstant.TENANT_ID, tenantId); |
|
|
|
reqObj.put(WxPayConstant.MERCHANT_ID, "317109453987631104"); |
|
|
|
// reqObj.put(WxPayConstant.MEM_ID, "318314000718200832"); |
|
|
|
reqObj.put(WxPayConstant.MERCHANT_ID, "320833942159982592"); |
|
|
|
// reqObj.put(WxPayConstant.MEM_ID, "321178010928119808"); |
|
|
|
reqObj.put(WxPayConstant.MEM_PHONE, "13910154397"); |
|
|
|
reqObj.put(WxPayConstant.POS_ORDER_ID, "1"); |
|
|
|
reqObj.put(WxPayConstant.POS_AMOUNT, "100"); |
|
|
|
reqObj.put(WxPayConstant.POS_AMOUNT, "200"); |
|
|
|
reqObj.put(WxPayConstant.SIGN, WxPayment.createSignHMAC(reqObj, devReqKey)); |
|
|
|
String reqJsonStr = JSONObject.toJSONString(reqObj); |
|
|
|
MvcResult result = mockMvc.perform( |
|
|
|
|