コード例 #1
0
ファイル: LotteryServer.class.php プロジェクト: pemako/weixin
 /**
  * 查看抽奖资格
  * @return boolean
  */
 public function hasChance()
 {
     $db = new DbConn();
     if (!$db->findByUid($this->uid)) {
         return true;
         // 有资格抽奖
     }
     return false;
 }