drawedts > 0; } /** * 邮件是否存在奖励内容 * true = 有奖励 * false = 无 * @return bool */ public function isExistReward() { return $this->itemid > 0 && $this->num > 0; } /** * 返回: 物品id,数量 的字符串 * @return string */ public function getRewardStr() { return $this->itemid . "," . $this->num; } function __construct($tag = null, $type = 1, $title = "", $content = "", $itemid = 0, $num = 0, # $uid_sender = "系统", $name_sender = "系统", $startts = 0, $endts = 1999999999) { if (1 == func_num_args() && $tag) { # 默认的Object初始化方法 parent::__construct($tag); } else { $this->tag = $tag; $this->type = $type; $this->title = $title; $this->content = $content; $this->itemid = $itemid; $this->num = $num; $this->uid_sender = $uid_sender; $this->name_sender = $name_sender; $this->startts = $startts; $this->endts = $endts; } } }