|
@@ -521,7 +521,8 @@ func (this *CourseManage) CreateOnLineApi() {
|
|
|
}
|
|
|
publishtime, err := time.ParseInLocation(qutil.Date_Full_Layout, s_publishtime, time.Local)
|
|
|
if err != nil {
|
|
|
- return &FuncResult{false, errors.New("发布时间异常"), nil}
|
|
|
+ //return &FuncResult{false, errors.New("发布时间异常"), nil}
|
|
|
+ publishtime , err = time.ParseInLocation(qutil.Date_Full_Layout, time.Now().Format("2006-01-02 15:04:05"), time.Local)
|
|
|
}
|
|
|
l_endTime, err := time.ParseInLocation(qutil.Date_Full_Layout, endTime, time.Local)
|
|
|
if err != nil {
|