陈少旭 3 месяцев назад
Родитель
Сommit
f7ca8a81be
1 измененных файлов: 2 добавлений и 2 удалений
  1. 2 2
      controllers/admin_api_controllers/custom_api_controller.go

+ 2 - 2
controllers/admin_api_controllers/custom_api_controller.go Просмотреть файл

@@ -14,14 +14,14 @@ type CustomAPIController struct {
14 14
 
15 15
 func (this *CustomAPIController) CheckCustom() {
16 16
 	id, _ := this.GetInt64("id")
17
-	ci, _ := service.FindCustomInfoByID(id)
17
+	ci, _ := service.FindCustomInfoByIDTwo(id)
18 18
 	if ci.ID == 0 {
19 19
 		this.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeParamWrong)
20 20
 		return
21 21
 	}
22 22
 	ci.IsCheck = 1
23 23
 	ci.CheckPerson = this.GetAdminInfo().Name
24
-	err := service.SaveCustom(&ci)
24
+	err := service.SaveCustomTwo(ci)
25 25
 	if err != nil {
26 26
 		this.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeSystemError)
27 27
 		return