|
|
@ -64,7 +64,7 @@ class GoodsActivity extends Model |
|
|
public function getMonthSalesAttribute() |
|
|
public function getMonthSalesAttribute() |
|
|
{ |
|
|
{ |
|
|
$ssdb = ApplicationContext::getContainer()->get(SSDBTask::class); |
|
|
$ssdb = ApplicationContext::getContainer()->get(SSDBTask::class); |
|
|
return (integer)$ssdb->exec('get', SsdbKeys::GOODS_MONTH_SALES.date('Ym').'_'.$this->id); |
|
|
|
|
|
|
|
|
return (integer)$ssdb->exec('get', SsdbKeys::GOODS_MONTH_SALES.date('Ym').'_2_'.$this->id); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public function getCartNumAttribute() |
|
|
public function getCartNumAttribute() |
|
|
|