public function checkMobile() { $int = N::checkMobile($this->mobile); if (!$int) { $this->addError('mobile', '手机号格式不正确'); } }