考勤提醒限制

This commit is contained in:
pengyuthon
2026-02-09 20:29:17 +08:00
parent 17e58a0fde
commit efcb522159
+1 -1
View File
@@ -200,7 +200,7 @@ class WeComApps(models.Model):
} }
service_address = self.env['ir.config_parameter'].sudo().get_param('web.base.url') service_address = self.env['ir.config_parameter'].sudo().get_param('web.base.url')
_logger.info(f"企业微信接口请求地址{service_address}-------------------------------") _logger.info(f"企业微信接口请求地址{service_address}-------------------------------")
if '8057' not in service_address: if 'thtzjt' in service_address:
result_data = self.sync_function_api("message_send", "MESSAGE_SEND", data, category) result_data = self.sync_function_api("message_send", "MESSAGE_SEND", data, category)
employee_id = self.sudo().env["res.users"].search([("login", "=", user_id)], limit=1).employee_ids employee_id = self.sudo().env["res.users"].search([("login", "=", user_id)], limit=1).employee_ids
notice_type = 'attendance' if '记得打卡' in description else 'process' notice_type = 'attendance' if '记得打卡' in description else 'process'