Merge branch 'dev_aliyun' into develop

newyslclassrooms
cxt 5 years ago
commit 1801f07a40

@ -3,6 +3,6 @@ class CourseVideo < ApplicationRecord
belongs_to :video, optional: true belongs_to :video, optional: true
belongs_to :user, optional: true belongs_to :user, optional: true
validates :title, length: { maximum: 60, too_long: "不能超过60个字符" } validates :title, length: { maximum: 60, too_long: "不能超过60个字符" }, allow_blank: true
validates :link, format: { with: CustomRegexp::URL, message: "必须为网址超链接" } validates :link, format: { with: CustomRegexp::URL, message: "必须为网址超链接" }, allow_blank: true
end end

@ -240,7 +240,7 @@ class VideoIndex extends Component{
const { coursesId , videoId }=this.props.match.params; const { coursesId , videoId }=this.props.match.params;
const {course_identity} = this.props.coursedata; const {course_identity} = this.props.coursedata;
const flag = parseInt(course_identity) < 4; const flag = parseInt(course_identity) < 5;
const newOperation = flag; const newOperation = flag;
const new_upload = flag && (is_teacher && this.props.checkIfProfessionalCertification()); const new_upload = flag && (is_teacher && this.props.checkIfProfessionalCertification());
return( return(

Loading…
Cancel
Save