wangfei преди 6 години
родител
ревизия
5fa5cd419a
променени са 2 файла, в които са добавени 3 реда и са изтрити 3 реда
  1. 1
    1
      routers/wechat.go
  2. 2
    2
      service/course/order.go

+ 1
- 1
routers/wechat.go Целия файл

@@ -1,7 +1,6 @@
1 1
 package routers
2 2
 
3 3
 import (
4
-	"cdkj-check/controllers/luckdraw"
5 4
 	"spaceofcheng/services/controllers/bodycheck"
6 5
 	"spaceofcheng/services/controllers/card"
7 6
 	"spaceofcheng/services/controllers/cases"
@@ -10,6 +9,7 @@ import (
10 9
 	"spaceofcheng/services/controllers/customer"
11 10
 	"spaceofcheng/services/controllers/goods"
12 11
 	"spaceofcheng/services/controllers/gymcard"
12
+	"spaceofcheng/services/controllers/luckdraw"
13 13
 	"spaceofcheng/services/controllers/user"
14 14
 
15 15
 	"github.com/astaxie/beego"

+ 2
- 2
service/course/order.go Целия файл

@@ -371,8 +371,8 @@ func (s *CourseServ) SaveOrder(order *model.TaCourseOrders, course *course.Cours
371 371
 		}
372 372
 		custCourseDetails = append(custCourseDetails, d2)
373 373
 	}
374
-
375
-	if customerCourseId, err := s.dao.SaveCourseOfCustomer(&custCourse, custCourseDetails); err != nil {
374
+	customerCourseId, err := s.dao.SaveCourseOfCustomer(&custCourse, custCourseDetails)
375
+	if err != nil {
376 376
 		utils.LogError("插入我的课程失败: " + err.Error())
377 377
 		return errors.New("写入我的课程失败")
378 378
 	}