drawedts > 0; } /** * 计算邮件的超时时间 * @return type */ public function ExpireTs() { return $this->insertts + EmailProc::MaxMailExpireTs; } /** * 邮件是否存在奖励内容 * true = 有奖励 * false = 无 * @return bool */ public function isExistReward() { return strlen($this->appendix) > 0; } function __construct($tag = null, $type = 1, $title = "", $content = "", $appendix = "", # $uid_sender = "系统", $name_sender = "系统") { if (1 == func_num_args() && $tag) { # 默认的Object初始化方法 parent::__construct($tag); } else { # 并非只有一个参数的情况下, tag还是tag $this->tag = $tag; $this->type = $type; $this->title = $title; $this->content = $content; $this->appendix = $appendix; $this->sender_uid = $uid_sender; $this->sender_name = $name_sender; $this->insertts = now(); # 初始化插入/创建时间 } } }