Commit 8354e0bf authored by 赵然's avatar 赵然

zr

parent 83eae874
...@@ -36,9 +36,9 @@ public class 瓜分积分_作弊瓜分 extends DuibaTestBase { ...@@ -36,9 +36,9 @@ public class 瓜分积分_作弊瓜分 extends DuibaTestBase {
private DuibaLog logger = DuibaLog.getLogger(); private DuibaLog logger = DuibaLog.getLogger();
private static Integer uid1 = 5029; private static Integer uid1 = 5080;
private static Integer uid2 = 5058; private static Integer uid2 = 5081;
private static Integer uid3 = 5059; private static Integer uid3 = 5086;
private static String betId; private static String betId;
private static String optionId1; private static String optionId1;
private static String optionId2; private static String optionId2;
...@@ -46,7 +46,7 @@ public class 瓜分积分_作弊瓜分 extends DuibaTestBase { ...@@ -46,7 +46,7 @@ public class 瓜分积分_作弊瓜分 extends DuibaTestBase {
@Test @Test
public void 创建PK活动() throws Exception{ public void 创建PK活动() throws Exception{
Response response = pkDevelopService.betEditor("21771","4",null,"30"); Response response = pkDevelopService.betEditor("21827","4","1","30");
Assert.assertEquals(response.jsonPath().getString("desc"),"成功","创建组件化pk活动失败"); Assert.assertEquals(response.jsonPath().getString("desc"),"成功","创建组件化pk活动失败");
response = pkService.getBetList(uid1); response = pkService.getBetList(uid1);
...@@ -129,9 +129,9 @@ public class 瓜分积分_作弊瓜分 extends DuibaTestBase { ...@@ -129,9 +129,9 @@ public class 瓜分积分_作弊瓜分 extends DuibaTestBase {
logger.info("用户2开奖前积分:"+credits2); logger.info("用户2开奖前积分:"+credits2);
logger.info("用户3开奖前积分:"+credits3); logger.info("用户3开奖前积分:"+credits3);
//增加积分: 30/(2+2) //增加积分:设置实际每人瓜分1积分
credits1 = String.valueOf(Integer.valueOf(credits1)+7); credits1 = String.valueOf(Integer.valueOf(credits1)+1);
credits2 = String.valueOf(Integer.valueOf(credits2)+7); credits2 = String.valueOf(Integer.valueOf(credits2)+1);
//修改开奖时间 //修改开奖时间
this.modifyOpenPrizeTime(betId,60); this.modifyOpenPrizeTime(betId,60);
...@@ -170,9 +170,9 @@ public class 瓜分积分_作弊瓜分 extends DuibaTestBase { ...@@ -170,9 +170,9 @@ public class 瓜分积分_作弊瓜分 extends DuibaTestBase {
Assert.assertEquals(betGroupRelation.get("config_status").toString(),"4","pk关系表开奖状态更新失败"); Assert.assertEquals(betGroupRelation.get("config_status").toString(),"4","pk关系表开奖状态更新失败");
logger.info("pk活动配置表状态更新为:"+betConfig.get("config_status").toString()+",pk关系表活动状态更新为:"+betGroupRelation.get("config_status").toString()); logger.info("pk活动配置表状态更新为:"+betConfig.get("config_status").toString()+",pk关系表活动状态更新为:"+betGroupRelation.get("config_status").toString());
Map<String,Object> user01_order = jdbc.findSimpleResult("select * from activity_order_con.tb_trade_center_activity_order_0661 where consumer_id = '100112021' and duiba_activity_id = ?\n",betId); Map<String,Object> user01_order = jdbc.findSimpleResult("select * from activity_order_con.tb_trade_center_activity_order_0723 where consumer_id = '100112083' and duiba_activity_id = ?\n",betId);
Assert.assertEquals(user01_order.get("add_credits").toString(),"7","开奖后发奖值校验失败"); Assert.assertEquals(user01_order.get("add_credits").toString(),"1","开奖后发奖值校验失败");
Map<String,Object> user02_order = jdbc.findSimpleResult("select * from activity_order_con.tb_trade_center_activity_order_0691 where consumer_id = '100112051' and duiba_activity_id = ?\n",betId); Map<String,Object> user02_order = jdbc.findSimpleResult("select * from activity_order_con.tb_trade_center_activity_order_0724 where consumer_id = '100112084' and duiba_activity_id = ?\n",betId);
Assert.assertEquals(user02_order.get("add_credits").toString(),"","开奖后发奖值校验失败"); Assert.assertEquals(user02_order.get("add_credits").toString(),"","开奖后发奖值校验失败");
logger.info("用户01获取的积分值为:"+user01_order.get("add_credits").toString()+",用户03获取的积分值为:"+user02_order.get("add_credits").toString()); logger.info("用户01获取的积分值为:"+user01_order.get("add_credits").toString()+",用户03获取的积分值为:"+user02_order.get("add_credits").toString());
......
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