Properties

$error

$error : 

Type

$wxappId

$wxappId : 

Type

$ActiveModel

$ActiveModel : 

Type

$ActiveTimeModel

$ActiveTimeModel : 

Type

Methods

getError()

getError() : mixed

获取错误信息

Returns

mixed

hasError()

hasError() : boolean

是否存在错误

Returns

boolean

__construct()

__construct() 

构造方法 Active constructor.

getHallIndex()

getHallIndex() : array

获取秒杀活动会场首页数据

Throws

\think\db\exception\DataNotFoundException
\think\db\exception\ModelNotFoundException
\think\exception\DbException

Returns

array

getSharpModular()

getSharpModular(array  $goodsParm = array()) : array

获取秒杀活动组件数据

Parameters

array $goodsParm

Throws

\think\db\exception\DataNotFoundException
\think\db\exception\ModelNotFoundException
\think\exception\DbException

Returns

array

getGoodsListByActiveTimeId()

getGoodsListByActiveTimeId(integer  $activeTimeId, array  $goodsParm = array()) : false|\PDOStatement|string|\think\Collection

根据活动场次ID获取商品列表

Parameters

integer $activeTimeId
array $goodsParm

Returns

false|\PDOStatement|string|\think\Collection

getyActiveGoodsDetail()

getyActiveGoodsDetail(  $activeTimeId,   $sharpGoodsId) : array|boolean

获取活动商品详情

Parameters

$activeTimeId
$sharpGoodsId

Throws

\think\exception\DbException

Returns

array|boolean

getCheckoutGoodsList()

getCheckoutGoodsList(  $activeTimeId,   $sharpGoodsId,   $goodsSkuId,   $goodsNum) : array|boolean

获取订单提交的商品列表

Parameters

$activeTimeId
$sharpGoodsId
$goodsSkuId
$goodsNum

Throws

\think\exception\DbException

Returns

array|boolean

getActiveGoods()

getActiveGoods(  $activeTimeId,   $sharpGoodsId) : mixed

获取活动商品的关联信息

Parameters

$activeTimeId
$sharpGoodsId

Returns

mixed

getGoodsActive()

getGoodsActive(  $activeTimeId,   $sharpGoodsId) : array|boolean

活动详情

Parameters

$activeTimeId
$sharpGoodsId

Returns

array|boolean

getGoodsActiveCountDownTime()

getGoodsActiveCountDownTime(  $activeStatus,   $startTime,   $endTime) : boolean|false|string

活动商品倒计时

Parameters

$activeStatus
$startTime
$endTime

Returns

boolean|false|string

getActivcGoodsStatus()

getActivcGoodsStatus(  $startTime,   $endTime) : integer

活动商品状态

Parameters

$startTime
$endTime

Returns

integer

getActiveTabbar()

getActiveTabbar() : array

获取秒杀首页顶部菜单

Throws

\think\db\exception\DataNotFoundException
\think\db\exception\ModelNotFoundException
\think\exception\DbException

Returns

array

getBeginActive()

getBeginActive(  $todyActive) : array

获取当前进行中的活动

Parameters

$todyActive

Throws

\think\db\exception\DataNotFoundException
\think\db\exception\ModelNotFoundException
\think\exception\DbException

Returns

array

getSoonActive()

getSoonActive(  $todyActive) : array

获取即将开始的活动

Parameters

$todyActive

Throws

\think\db\exception\DataNotFoundException
\think\db\exception\ModelNotFoundException
\think\exception\DbException

Returns

array

getNoticeActive()

getNoticeActive() 

获取预告的活动

Throws

\think\db\exception\DataNotFoundException
\think\db\exception\ModelNotFoundException
\think\exception\DbException

onFormatTime()

onFormatTime(  $timeStamp) : false|string

将时间戳格式化为日期时间

Parameters

$timeStamp

Returns

false|string