\app\common\serviceGoods

商品服务类 Class Goods

Summary

Methods
Properties
Constants
setGoodsData()
getSpecData()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

setGoodsData()

setGoodsData(  $data, boolean  $isMultiple = true, string  $goodsIndex = 'goods_id') : mixed

设置商品数据

Parameters

$data
boolean $isMultiple
string $goodsIndex

Throws

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

Returns

mixed

getSpecData()

getSpecData(\app\common\model\Goods|null  $model = null) : null|array

商品多规格信息

Parameters

\app\common\model\Goods|null $model

Returns

null|array