Merge pull request !8740 from 李鹏宇/dev
This commit is contained in:
李鹏宇
2026-02-06 07:03:02 +00:00
committed by Gitee
+4 -2
View File
@@ -230,8 +230,10 @@ class YuthonNotice(models.Model):
url=url,
btntxt="详细信息"
)
if result_data and isinstance(result_data, list) and 'msgid' in result_data[-1]:
msg_id = result_data[-1]['msgid']
if result_data and isinstance(result_data, tuple) and len(result_data) >= 2:
res_dict = result_data[1]
if res_dict.get('errcode') == 0 and res_dict.get('errmsg') == 'ok' and 'msgid' in res_dict:
msg_id = res_dict['msgid']
for mapping in user_wecom_mapping:
emp_id = mapping['emp_id']