예제 #1
0
파일: Utils.php 프로젝트: uwitec/outbuying
 /**
  * 获得 经过 组ID 偏移后的 RealEpollId 
  *
  * @param int $idOffset
  * @return int
  */
 public static function getRealEpollId($idOffset = 0)
 {
     if (defined('TQ_33')) {
         if (Watt_Config::getEpollGroupId()) {
             $epo = Watt_Config::getEpollGroupId() * 65536 * 256 + $idOffset;
         } else {
             $epo = 65536 * 256 + $idOffset;
         }
     } else {
         $epo = $idOffset;
     }
     return $epo;
 }
예제 #2
0
파일: Sms.php 프로젝트: uwitec/outbuying
 /**
  * 初始化
  */
 private static function _init()
 {
     if (!self::$_site_code) {
         self::$_site_code = sprintf("%02d", Watt_Config::getEpollGroupId());
     }
 }