diff --git a/yuthon_wechat/models/wecom_apps.py b/yuthon_wechat/models/wecom_apps.py index 66e278e51..9ae5caa0d 100644 --- a/yuthon_wechat/models/wecom_apps.py +++ b/yuthon_wechat/models/wecom_apps.py @@ -160,7 +160,7 @@ class WeComApps(models.Model): "btntxt": btntxt }, } - elif category in ['task', 'att_ok']: + elif category in ['task', 'att_ok', 'salary']: data = { 'touser': user_id, 'msgtype': 'textcard', diff --git a/yuthon_wechat/models/wecom_apps_config.py b/yuthon_wechat/models/wecom_apps_config.py index 09f8d76ba..67dd269f3 100644 --- a/yuthon_wechat/models/wecom_apps_config.py +++ b/yuthon_wechat/models/wecom_apps_config.py @@ -29,6 +29,7 @@ class WecomAppsConfig(models.Model): ('att', '出勤类型'), ('task', '日程类型'), ('att_ok', '考勤确认类型'), + ('salary', '薪资消息通知'), ], default="default") wecom_apps_id = fields.Many2one("wecom.apps", string="企业微信的应用")