PHP Класс console\controllers\GoodsController

Автор: Cosmo ([email protected])
Наследование: extends yii\console\Controller
Показать файл Открыть проект

Открытые методы

Метод Описание
actionClone ( array $id, string $to, $surplus = null ) : string 将商品克隆到新的店铺
actionCloneAll ( string $from, string $to, string $category = 'all', string $status = 'all' ) : string 将商品从一个店铺克隆到另一个店铺
actionRefreshSales ( ) : string 刷新商品月销量,每日凌晨4点刷新

Описание методов

actionClone() публичный Метод

将商品克隆到新的店铺
public actionClone ( array $id, string $to, $surplus = null ) : string
$id array 源商品ID或一个ID列表
$to string 目标店铺
Результат string

actionCloneAll() публичный Метод

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

actionRefreshSales() публичный Метод

刷新商品月销量,每日凌晨4点刷新
public actionRefreshSales ( ) : string
Результат string