PHP Class console\controllers\GoodsController

Author: Cosmo ([email protected])
Inheritance: extends yii\console\Controller
Datei anzeigen Open project: daixianceng/xiaoego.com

Public Methods

Method Description
actionClone ( array $id, string $to, $surplus = null ) : string 将商品克隆到新的店铺
actionCloneAll ( string $from, string $to, string $category = 'all', string $status = 'all' ) : string 将商品从一个店铺克隆到另一个店铺
actionRefreshSales ( ) : string 刷新商品月销量,每日凌晨4点刷新

Method Details

actionClone() public method

将商品克隆到新的店铺
public actionClone ( array $id, string $to, $surplus = null ) : string
$id array 源商品ID或一个ID列表
$to string 目标店铺
return string

actionCloneAll() public method

将商品从一个店铺克隆到另一个店铺
public actionCloneAll ( string $from, string $to, string $category = 'all', string $status = 'all' ) : string
$from string 源商品所在店铺ID
$to string 目标店铺ID
$category string 过滤商品类型
$status string 过滤商品状态
return string

actionRefreshSales() public method

刷新商品月销量,每日凌晨4点刷新
public actionRefreshSales ( ) : string
return string