\lib\supplyProductsExchange

Summary

Methods
Properties
Constants
Ordersubmit()
AddCardSecret()
CardCountGoods()
CardListGoods()
HtmlGoodsCard()
DeleteGoodsCard()
EditGoodsCard()
uuid()
$State
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$State

$State : bool

Type

bool — 功能开关,设置为false关闭卡密兑换功能

Methods

Ordersubmit()

Ordersubmit( $DataBuy,  $Token) : mixed

Parameters

$DataBuy

//下单信息

$Token

下单信息提交

Returns

mixed —

AddCardSecret()

AddCardSecret( $Goods = 1,  $Count = 10) : mixed

Parameters

$Goods
$Count

添加商品卡密

Returns

mixed —

CardCountGoods()

CardCountGoods( $Gid = '',  $Type = 1) : mixed

Parameters

$Gid

//商品ID

$Type

//1全部,2已使用,3未使用 兑换卡数量

Returns

mixed —

CardListGoods()

CardListGoods( $Page = 1,  $Limit = 10,  $Gid = '',  $Type = 1) : mixed

Parameters

$Page
$Limit
$Gid

//商品ID

$Type

//1全部,2已使用,3未使用 商品卡密列表

Returns

mixed —

HtmlGoodsCard()

HtmlGoodsCard() : mixed

生成独立的html部署文件

Returns

mixed —

DeleteGoodsCard()

DeleteGoodsCard( $Array,  $Type = 1) : mixed

Parameters

$Array
$Type

//1根据前一个参数删除,2删除全部已使用,3删除全部未使用,4删除全部! 删除商品卡密

Returns

mixed —

EditGoodsCard()

EditGoodsCard( $Id,  $Data) : mixed

Parameters

$Id
$Data

编辑商品卡密

Returns

mixed —

uuid()

uuid() : string

Returns

string —

生成Guid唯一码