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