陈少旭 преди 3 месеца
родител
ревизия
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