...
|
...
|
@@ -21,15 +21,17 @@ public class KafakTest { |
|
|
|
|
|
@Test
|
|
|
public void kafakTest() throws Exception {
|
|
|
System.out.println("++++======");
|
|
|
|
|
|
//YB_MAIN_S
|
|
|
kafkaTemplate.sendDefault("{\"uid\":\"50651266\",\"ts\":\"1492589408906\",\"param\":{\"C_ID\":\"2\",\"KW\":\"运动内衣\",\"AB_TYPE\":\"A\"},\"os\":\"Android\",\"op\":\"YB_MAIN_S\",\"imei\":\"860793033630590\",\"udid\":\"860793033630590d35d3cd6d545bc30\",\"ip\":\"117.177.241.31\",\"idfa\":\"\"}");
|
|
|
//kafkaTemplate.sendDefault("{\"uid\":\"50651266\",\"ts\":\"1492589408906\",\"param\":{\"C_ID\":\"2\",\"KW\":\"运动内衣\",\"AB_TYPE\":\"A\"},\"os\":\"Android\",\"op\":\"YB_MAIN_S\",\"imei\":\"860793033630590\",\"udid\":\"860793033630590d35d3cd6d545bc30\",\"ip\":\"117.177.241.31\",\"idfa\":\"\"}");
|
|
|
//YB_GDS_DT_INFO
|
|
|
kafkaTemplate.sendDefault("{\"uid\":\"4375096\",\"ts\":\"1492589451972\",\"param\":{\"C_ID\":\"3\",\"AB_TYPE\":\"A\",\"PRD_ID\":\"547108\"},\"os\":\"iOS\",\"op\":\"YB_GDS_DT_INFO\",\"imei\":\"4b9d8a7349cd2a4\",\"udid\":\"4b9d8a7349cd2a48388265b33a8d617863820a36\",\"ip\":\"180.158.226.89\",\"idfa\":\"6F0B4DAA-1955-420A-B3EC-B7E656AD2328\"}");
|
|
|
//kafkaTemplate.sendDefault("{\"uid\":\"4375096\",\"ts\":\"1492589451972\",\"param\":{\"C_ID\":\"3\",\"AB_TYPE\":\"A\",\"PRD_ID\":\"547108\"},\"os\":\"iOS\",\"op\":\"YB_GDS_DT_INFO\",\"imei\":\"4b9d8a7349cd2a4\",\"udid\":\"4b9d8a7349cd2a48388265b33a8d617863820a36\",\"ip\":\"180.158.226.89\",\"idfa\":\"6F0B4DAA-1955-420A-B3EC-B7E656AD2328\"}");
|
|
|
//YB_GDS_DT_SEL
|
|
|
kafkaTemplate.sendDefault("{\"uid\":\"51031210\",\"ts\":\"1492589531111\",\"param\":{\"SIZE_ID\":203,\"STORAGE_LEFT\":9,\"PRD_SKU\":1271706,\"C_ID\":\"1\",\"PRD_SKN\":\"51259840\",\"AB_TYPE\":\"A\",\"PRD_SKC\":408688,\"PRD_ID\":\"458222\"},\"os\":\"iOS\",\"op\":\"YB_GDS_DT_SEL\",\"imei\":\"34fdc1bed0e9c67\",\"udid\":\"34fdc1bed0e9c6700922bb4481e41b0c1253824a\",\"ip\":\"183.40.13.82\",\"idfa\":\"00000000-0000-0000-0000-000000000000\"}");
|
|
|
//kafkaTemplate.sendDefault("{\"uid\":\"51031210\",\"ts\":\"1492589531111\",\"param\":{\"SIZE_ID\":203,\"STORAGE_LEFT\":9,\"PRD_SKU\":1271706,\"C_ID\":\"1\",\"PRD_SKN\":\"51259840\",\"AB_TYPE\":\"A\",\"PRD_SKC\":408688,\"PRD_ID\":\"458222\"},\"os\":\"iOS\",\"op\":\"YB_GDS_DT_SEL\",\"imei\":\"34fdc1bed0e9c67\",\"udid\":\"34fdc1bed0e9c6700922bb4481e41b0c1253824a\",\"ip\":\"183.40.13.82\",\"idfa\":\"00000000-0000-0000-0000-000000000000\"}");
|
|
|
|
|
|
//YB_SC_ORD
|
|
|
//ignored because ship orders
|
|
|
kafkaTemplate.sendDefault("{\"uid\":\"20000740\",\"ts\":\"1492570964462\",\"param\":{\"C_ID\":\"1\",\"ORD_NUM\":\"170129416\"},\"os\":\"iPhone OS\",\"op\":\"YB_SC_ORD\",\"imei\":\"1b4747946de0c62\",\"udid\":\"93db0a46f5005d986106df6b2618538d06fd2f99\",\"ip\":\"117.136.88.1\",\"idfa\":\"E65BC03A-6572-4B83-9706-D16BBFEAE51C\"}");
|
|
|
//not ignored
|
|
|
kafkaTemplate.sendDefault("{\"uid\":\"20000740\",\"ts\":\"1492570964462\",\"param\":{\"C_ID\":\"1\",\"ORD_NUM\":\"170129416\"},\"os\":\"iPhone OS\",\"op\":\"YB_SC_ORD\",\"imei\":\"1b4747946de0c62\",\"udid\":\"1b4747946de0c624d348c57187cd7b02eb4126e0\",\"ip\":\"117.136.88.1\",\"idfa\":\"E65BC03A-6572-4B83-9706-D16BBFEAE51C\"}");
|
|
|
|
|
|
Thread.sleep(300 * 1000);
|
...
|
...
|
|