public function censor() { $original_status = $this->getOriginal('b_status'); $new_status = $this->b_status; $old_status = '审核之前的状态为: ' . TmpUserProfileBankcard::getStatus($original_status) . ', 审核之后的状态为: ' . TmpUserProfileBankcard::getStatus($new_status) . '.'; if ($this->b_status == 2) { $content = '用户银行卡信息审核未通过, ' . $old_status . ' 备注: ' . $this->remark; } elseif ($this->b_status == 1) { $content = '用户银行卡信息审核通过, ' . $old_status; } else { $content = '审核银行卡信息记录, ' . $old_status; } $msg = new MessageDispatcher($this->u_id); $msg->fireTextToUser($content); $this->addCensorLog($content); return $this->save(); }