Esempio n. 1
0
	/**
	 * 调用数据解析器
	 */
	private static function _callFetchData()
	{
		$msgStr = trim(file_get_contents('php://input'));
		if (! $msgStr) {
			self::_errorLog('php://input: is null');
			self::_exit();
		}
		self::$_msgStr = $msgStr;
		$message = self::_parseMessage($msgStr);

		if (! $message || ! is_object($message)) {
			self::_errorLog('weixin push data error', $msgStr);
			self::_exit();
		}

		self::$_message = $message;
		return $message;
	}