|
|
|
@ -68,7 +68,8 @@ class GoodsActivity extends Model |
|
|
|
|
|
|
|
public function getCartNumAttribute() |
|
|
|
{ |
|
|
|
return 0; |
|
|
|
$userId = $this->request->user->id ?? 0; |
|
|
|
return $userId ? (integer)$this->shopCartService->check($userId, $this->id,1) : 0; |
|
|
|
} |
|
|
|
|
|
|
|
public function getIsEffectiveAttribute() |
|
|
|
|