Group.php 542 Bytes
<?php
defined('IN_IA') or exit('Access Denied');

class Group
{
	const G_2_NUM			= 2;  // 2人团
	const G_3_NUM			= 3;  // 3人以上团

	const STATUS_START  	= 0;//.开团未支付的情况
	const STATUS_GROUPING  	= 1;//.拼团中
	const STATUS_SUCCESS	= 2;//成功,
	const STATUS_OK			= 3;//失败

	/**
	 * @param $time1
	 * @param $time2
	 * @return mixed
	 */
	static function expireTime($time1 = '', $time2 = '')
	{
		if ('尽快送达' == $time1 or empty($time1)) {
			return time() + 30 * 60;
		}
		return strtotime($time1);
	}
}