diff --git a/app/adminapi/validate/project/ProjectLogsValidate.php b/app/adminapi/validate/project/ProjectLogsValidate.php index 460be7328..2b72de671 100644 --- a/app/adminapi/validate/project/ProjectLogsValidate.php +++ b/app/adminapi/validate/project/ProjectLogsValidate.php @@ -38,7 +38,7 @@ class ProjectLogsValidate extends BaseValidate 'project_id' => 'require|checkProject', 'theme' => 'require', 'date' => 'require|date', - 'follow_type' => 'checkFollowType', + 'follow_type' => 'require|checkFollowType', 'next_follow_up_date' => 'date|checkNextFollowUpDate', ]; @@ -48,6 +48,7 @@ class ProjectLogsValidate extends BaseValidate 'theme.require' => '主题不能为空', 'date.require' => '日期不能为空', 'date.date' => '日期格式不正确', + 'follow_type.require' => '请选择类型', 'next_follow_up_date.date' => '下次跟进时间格式不正确', ];