Commit 6cdd4e07 authored by 赵然's avatar 赵然

zr

parent 3fa9d5b7
...@@ -12,4 +12,5 @@ public class Database { ...@@ -12,4 +12,5 @@ public class Database {
public static String orders5 = "orders_0209"; public static String orders5 = "orders_0209";
public static String orders6 = "orders_0210"; public static String orders6 = "orders_0210";
public static String orders7 = "orders_0211"; public static String orders7 = "orders_0211";
public static String orders8 = "orders_0090";
} }
...@@ -76,7 +76,7 @@ public class DeveloperAccountService { ...@@ -76,7 +76,7 @@ public class DeveloperAccountService {
map.put("mode","two"); map.put("mode","two");
map.put("orderId",orderId); map.put("orderId",orderId);
map.put("rowId","1"); map.put("rowId","1");
Response response=given().cookies(authorization.hdLogin()).params(map).get("http://"+url); Response response=given().cookies(authorization.hdLoginCommon("zhaoran@duiba.com.cn")).params(map).get("http://"+url);
try{ try{
Assert.assertEquals(response.jsonPath().getString("success"),"true","/developerAccount/cashDetail接口失败"); Assert.assertEquals(response.jsonPath().getString("success"),"true","/developerAccount/cashDetail接口失败");
......
...@@ -49,9 +49,28 @@ public class DsOrderService { ...@@ -49,9 +49,28 @@ public class DsOrderService {
throw new Exception("请求订单审核接口失败,返回信息:"+response.asString()); throw new Exception("请求订单审核接口失败,返回信息:"+response.asString());
} }
return response; return response;
}
//审核订单
public Response submitAudit(String idArray,String audit,String email) throws Exception{
String url = hdHost + "/dsOrder/submitAudit";
} Map<String,String> map = new HashMap<>();
map.put("appId","18714");
map.put("idArray",idArray);
map.put("audit",audit);
map.put("reason","测试订单审核不通过");
logger.info("请求订单审核接口:" + url);
Response response=given().contentType("application/x-www-form-urlencoded;charset=UTF-8").cookies(authorization.hdLoginCommon(email)).params(map).post("http://"+url);
try{
Assert.assertEquals(response.jsonPath().getString("desc"),"成功");
}catch(Exception e){
throw new Exception("请求订单审核接口失败,返回信息:"+response.asString());
}catch(Error er){
throw new Exception("请求订单审核接口失败,返回信息:"+response.asString());
}
return response;
}
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment