|
@@ -43,3 +43,18 @@ class MyTest(unittest.TestCase):
|
|
# 测试兜底策略
|
|
# 测试兜底策略
|
|
def test3(self):
|
|
def test3(self):
|
|
req(1, '', '')
|
|
req(1, '', '')
|
|
|
|
+
|
|
|
|
+ def test4(self):
|
|
|
|
+ data = {"name": "p_00x32cx6bo7_count", "data": [
|
|
|
|
+ {"action_type": "曝光", "session_id": "xx12x@p_00x32cx6bo7\\x0368d1cfc7236659285e932ff64c13e5a8\\x03exp_id",
|
|
|
|
+ "action_value": "exposure"},
|
|
|
|
+ {"action_type": "曝光", "session_id": "xx12x@p_00x32cx6bo7\\x0368d1cfc7236659285e932ff64c13e5a8\\x03exp_id",
|
|
|
|
+ "action_value": "exposure"},
|
|
|
|
+ {"action_type": "曝光", "session_id": "xx12x@p_00x32cx6bo7\\x0368d1cfc7236659285e932ff64c13e5a8\\x03exp_id",
|
|
|
|
+ "action_value": "exposure"},
|
|
|
|
+ {"action_type": "曝光", "session_id": "xx12x@p_00x32cx6bo7\\x0368d1cfc7236659285e932ff64c13e5a8\\x03exp_id",
|
|
|
|
+ "action_value": "exposure"}]}
|
|
|
|
+ url = "http://10.20.2.200:31669/api/hao_rec/about_log/log_counter"
|
|
|
|
+ for x in range(100):
|
|
|
|
+ res = requests.post(url, json=data)
|
|
|
|
+ print(res.text)
|