修复:参数缺失

This commit is contained in:
yystopf 2025-05-22 14:11:09 +08:00
parent bf3540c250
commit 78c5458bb8
1 changed files with 1 additions and 1 deletions

View File

@ -284,7 +284,7 @@ class Api::Pm::IssuesController < Api::Pm::BaseController
end end
def load_issue def load_issue
return render_parameter_missing if params[:pm_project_id].blank? # return render_parameter_missing if params[:pm_project_id].blank?
@issue = Issue.issue_issue.where(pm_project_id: params[:pm_project_id]).find_by_id(params[:id]) @issue = Issue.issue_issue.where(pm_project_id: params[:pm_project_id]).find_by_id(params[:id])
render_not_found('疑修不存在!') if @issue.blank? render_not_found('疑修不存在!') if @issue.blank?
end end