|
@@ -842,13 +842,17 @@ func (this *CustomAPIController) DeleteFollowInfo() {
|
842
|
842
|
}
|
843
|
843
|
func (this *CustomAPIController) CheckFollowInfo() {
|
844
|
844
|
id, _ := this.GetInt64("id")
|
845
|
|
- follow, _ := service.FindChargeFollowInfo(id)
|
846
|
|
- if follow.ID == 0 {
|
|
845
|
+ follow, _ := service.FindChargeFollowInfoTwo(id)
|
|
846
|
+ if len(follow) == 0 {
|
847
|
847
|
this.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeParamWrong)
|
848
|
848
|
return
|
849
|
849
|
}
|
850
|
|
- follow.IsCheck = 1
|
851
|
|
- err := service.SaveChargeFollow(&follow)
|
|
850
|
+ var ids []int64
|
|
851
|
+ for _, item := range follow {
|
|
852
|
+
|
|
853
|
+ ids = append(ids, item.ID)
|
|
854
|
+ }
|
|
855
|
+ err := service.CheckChargeFollowTwo(ids)
|
852
|
856
|
if err != nil {
|
853
|
857
|
this.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeSystemError)
|
854
|
858
|
return
|