Commit eb80c1d7 authored by xiamengchen's avatar xiamengchen

解决tku失效报错问题

parent 2e62f6b8
...@@ -71,7 +71,7 @@ public class SignRed implements Authorization { ...@@ -71,7 +71,7 @@ public class SignRed implements Authorization {
Assert.assertTrue(attendAmount > 0, network.message(ATTEND_open, "签到失败", response.body().asString())); Assert.assertTrue(attendAmount > 0, network.message(ATTEND_open, "签到失败", response.body().asString()));
}else{ }else{
boolean success = response.jsonPath().getBoolean("success"); boolean success = response.jsonPath().getBoolean("success");
Assert.assertTrue(success, network.message(ATTEND_open, "重复签到成功", response.body().asString())); Assert.assertFalse(success, network.message(ATTEND_open, "重复签到成功", response.body().asString()));
} }
} }
...@@ -86,6 +86,7 @@ public class SignRed implements Authorization { ...@@ -86,6 +86,7 @@ public class SignRed implements Authorization {
@Test(description = "代理人账户明细",priority = 7) @Test(description = "代理人账户明细",priority = 7)
public void 代理人账户明细() { public void 代理人账户明细() {
if (!todayAttendFlag) {
agentTku(); agentTku();
Map<String, Object> Params = new HashMap<String, Object>(); Map<String, Object> Params = new HashMap<String, Object>();
Params.put("type", 2); Params.put("type", 2);
...@@ -102,4 +103,6 @@ public class SignRed implements Authorization { ...@@ -102,4 +103,6 @@ public class SignRed implements Authorization {
Assert.assertEquals(bizType, 16,network.message(PAY_accDetail, "收益明细类型错误", response.body().asString())); Assert.assertEquals(bizType, 16,network.message(PAY_accDetail, "收益明细类型错误", response.body().asString()));
Assert.assertEquals(changeMoney, String.format("%.2f",attendAmount/100),network.message(PAY_accDetail, "收益金额错误", response.body().asString())); Assert.assertEquals(changeMoney, String.format("%.2f",attendAmount/100),network.message(PAY_accDetail, "收益金额错误", response.body().asString()));
} }
}
} }
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