|
|
@ -129,8 +129,7 @@ public class CityPartnerPrizeServiceImplTest {
|
|
|
|
put("settle_info", settleConfig);
|
|
|
|
put("settle_info", settleConfig);
|
|
|
|
put("compliance_file_info", complianceInfo);
|
|
|
|
put("compliance_file_info", complianceInfo);
|
|
|
|
}};
|
|
|
|
}};
|
|
|
|
String originUrl = "http://127.0.0.1:5000/api/v1.0/gateway/partners/AXLCEXDDMB/merchant/application";
|
|
|
|
String originUrl = "https://mpay.royalpay.com.au/api/v1.0/gateway/org/AXLCEXDDMB/merchant/application";
|
|
|
|
// String originUrl = "http://127.0.0.1:5000/api/v1.0/gateway/partners/2121/merchant/application";
|
|
|
|
|
|
|
|
String url = addSignUrl(originUrl, params, PRIKEY);
|
|
|
|
String url = addSignUrl(originUrl, params, PRIKEY);
|
|
|
|
HttpRequestGenerator gen = new HttpRequestGenerator(url, RequestMethod.POST);
|
|
|
|
HttpRequestGenerator gen = new HttpRequestGenerator(url, RequestMethod.POST);
|
|
|
|
gen.setJSONEntity(params);
|
|
|
|
gen.setJSONEntity(params);
|
|
|
@ -147,7 +146,7 @@ public class CityPartnerPrizeServiceImplTest {
|
|
|
|
@Test
|
|
|
|
@Test
|
|
|
|
public void queryMerchantStatus() throws Exception{
|
|
|
|
public void queryMerchantStatus() throws Exception{
|
|
|
|
String partnerCode = "PBAR";
|
|
|
|
String partnerCode = "PBAR";
|
|
|
|
String originUrl = "http://127.0.0.1:5000/api/v1.0/gateway/partners/AXLCEXDDMB/merchant/" + partnerCode + "/status";
|
|
|
|
String originUrl = "https://mpay.royalpay.com.au/api/v1.0/gateway/org/AXLCEXDDMB/merchant/" + partnerCode + "/status";
|
|
|
|
String url = addSignUrl(originUrl, null, PRIKEY);
|
|
|
|
String url = addSignUrl(originUrl, null, PRIKEY);
|
|
|
|
HttpRequestGenerator gen = new HttpRequestGenerator(url, RequestMethod.GET);
|
|
|
|
HttpRequestGenerator gen = new HttpRequestGenerator(url, RequestMethod.GET);
|
|
|
|
HttpRequestResult result = gen.execute();
|
|
|
|
HttpRequestResult result = gen.execute();
|
|
|
@ -160,7 +159,7 @@ public class CityPartnerPrizeServiceImplTest {
|
|
|
|
|
|
|
|
|
|
|
|
@Test
|
|
|
|
@Test
|
|
|
|
public void updateFile() throws Exception{
|
|
|
|
public void updateFile() throws Exception{
|
|
|
|
String originUrl = "http://127.0.0.1:5000/api/v1.0/gateway/partners/AXLCEXDDMB/attachment/files";
|
|
|
|
String originUrl = "https://mpay.royalpay.com.au/api/v1.0/gateway/org/RQ6CJ4CGJZ/attachment/files";
|
|
|
|
String url = addSignUrl(originUrl, null, PRIKEY);
|
|
|
|
String url = addSignUrl(originUrl, null, PRIKEY);
|
|
|
|
File file = new File("/Users/luoyang/Downloads/121.jpg");
|
|
|
|
File file = new File("/Users/luoyang/Downloads/121.jpg");
|
|
|
|
InputStream stream = new FileInputStream(file);
|
|
|
|
InputStream stream = new FileInputStream(file);
|
|
|
|