Example #1
0
 public function save()
 {
     $new = false;
     if (empty($this->id)) {
         $new = true;
     }
     if (!empty($this->card)) {
         $this->card = PayCard::truncate($this->card);
     }
     parent::save();
 }
Example #2
0
 public function filter($msg)
 {
     if (empty($msg['payid'])) {
         return $msg;
     }
     $msg['payid'] = PayCard::truncate($msg['payid']);
     return $msg;
 }