diff --git a/1-Applet/3-Customer/EquityResource.robot b/1-Applet/3-Customer/EquityResource.robot index 38e9176..7cb6e22 100644 --- a/1-Applet/3-Customer/EquityResource.robot +++ b/1-Applet/3-Customer/EquityResource.robot @@ -153,8 +153,8 @@ Library DatabaseLibrary ${Time} Add Time To Date ${dataTime} 5 days ${end_time} Get Substring ${Time} 0 19 Connect To Database Using Custom Params pymysql database='dating_agency_mall',user='root',password='qniaothreetwoonego',host='8.135.8.221' - ${insert_1} Execute Sql String INSERT INTO `dating_agency_mall`.`da_right`(`id`, `is_delete`, `create_time`, `update_time`, `user_id`, `mi_id`, `type`, `start_time`, `end_time`, `enable`) VALUES (NULL, 0, '${Time}', '${dataTime}', ${userId}, ${miId}, 601, '${dataTime}', '${Time}', 1) #插入一条会员 - ${check_1} Query SELECT id FROM `dating_agency_mall`.`da_right` WHERE `mi_id` = '${miId}' AND `type` = '601' AND `enable` = '1' AND 'end_time ' = '${end_time}' #查询权益id + ${insert_1} Execute Sql String INSERT INTO `dating_agency_mall`.`da_right`(`id`, `is_delete`, `create_time`, `update_time`, `user_id`, `mi_id`, `type`, `start_time`, `end_time`, `enable`) VALUES (NULL, 0, '${Time}', '${dataTime}', ${userId}, ${miId}, 601, '${dataTime}', '${end_time}', 1) #插入一条会员 + ${check_1} Query SELECT id FROM `dating_agency_mall`.`da_right` WHERE `mi_id` = '${miId}' AND `type` = '601' AND `end_time` = '${end_time}' AND `enable` = '1' #查询权益id ${right_id} Set Variable ${check_1[0][0]} ${insert_2} Execute Sql String INSERT INTO `dating_agency_mall`.`da_right_term`(`id`, `is_delete`, `create_time`, `update_time`, `right_id`, `display_name`, `name`, `unit`, `value`) VALUES (NULL, 0, '${dataTime}', '${Time}', ${right_id}, '规格', 1, 101, NULL) ${insert_2} Execute Sql String INSERT INTO `dating_agency_mall`.`da_right_acquire_record`(`id`, `create_time`, `user_id`, `mi_id`, `right_id`, `right_type`, `acquire_type`) VALUES (NULL, '${dataTime}', ${userId}, ${miId}, ${right_id}, 601, 2) #权益领取记录 diff --git a/1-Applet/7-Chat/ChatResource.robot b/1-Applet/7-Chat/ChatResource.robot index edabf39..fe0bc0d 100644 --- a/1-Applet/7-Chat/ChatResource.robot +++ b/1-Applet/7-Chat/ChatResource.robot @@ -35,10 +35,10 @@ Library DatabaseLibrary ${InfomationData} Get From Dictionary ${reps.json()['data']} records #消息数组 Set Global Variable ${InfomationData} Run Keyword If ${InfomationData}==[] 查询婚介平台相亲列表 - ... ELSE 遍历消息列表 + ... ELSE 随机选择嘉宾聊天 END -遍历消息列表 +随机选择嘉宾聊天 ${infomation} Evaluate random.choice(${InfomationData}) random #随机获取聊天对象信息 ${roomId} Get From Dictionary ${infomation} roomId #聊天室id ${roomName} Get From Dictionary ${infomation} roomName #聊天对象名称 diff --git a/output/log.html b/output/log.html index 1fcac84..8782878 100644 --- a/output/log.html +++ b/output/log.html @@ -1806,25 +1806,25 @@ function stopPropagation(event) { window.output = {};