/** * 更新 * * @param int $expiredTime * @param int $mobile * @return bool */ public function updateByExpiredTime($expiredTime, PwUserMobileDm $dm) { if (($result = $dm->beforeUpdate()) !== true) { return $result; } return $this->_getDao()->updateByExpiredTime($expiredTime, $dm->getData()); }