public static function &getInstance() { if (self::$_instance === null) { self::$_instance = new self(); } return self::$_instance; }
public function getCursorId() { $tmp = Model_Mobile_CustomerBiSynRate::getInstance()->getLatestData(); if (empty($tmp)) { // 获取不到当日数据,就获取昨日数据 $date = date("Ymd", time() - 24 * 3600); $tmp = Model_Mobile_CustomerBiSynRate::getInstance()->getLatestData($date); } if (empty($tmp)) { return (int) $this->getOption('cursorId'); } return $tmp['biId'] ? $tmp['biId'] : 0; }