|
@@ -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
|