|
...
|
...
|
@@ -84,13 +84,14 @@ class Product extends Base |
|
|
|
const STATUS_DRAFT = 0;
|
|
|
|
const STATUS_ON = 1;
|
|
|
|
const STATUS_RECYCLE = 2;
|
|
|
|
|
|
|
|
const STATUS_THREE = 3;
|
|
|
|
|
|
|
|
public static function statusMap(){
|
|
|
|
return [
|
|
|
|
self::STATUS_DRAFT => '草稿',
|
|
|
|
self::STATUS_ON => '已发布',
|
|
|
|
self::STATUS_RECYCLE => '回收站',
|
|
|
|
self::STATUS_THREE => '待发布',
|
|
|
|
];
|
|
|
|
}
|
|
|
|
|
...
|
...
|
|