在model里面onAfterUpdate里面调用$model->save()报502了,好像因为save直接触发了onAfterUpdate 导致无限循环,后来使用self::where()->save()就好了