陈少旭 3 months ago
parent
commit
f7ca8a81be
1 changed files with 2 additions and 2 deletions
  1. 2 2
      controllers/admin_api_controllers/custom_api_controller.go

+ 2 - 2
controllers/admin_api_controllers/custom_api_controller.go View File

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