cart:GWM
This commit is contained in:
parent
0ef13c4620
commit
889a147f9a
@ -125,6 +125,10 @@ class Cart_controller extends BaseController
|
||||
{
|
||||
if (!session()->has('logged_user'))
|
||||
{
|
||||
if (session()->has('token'))
|
||||
{
|
||||
$token = session()->get('token');
|
||||
}
|
||||
$data = $this->Cart_token_model->where('md5(token)', $token )->findAll();
|
||||
if ($data)
|
||||
{
|
||||
@ -150,6 +154,8 @@ class Cart_controller extends BaseController
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
$token = md5($this->session->get('logged_user'));
|
||||
$data = $this->cartModel->where('md5(member_id)', $token )->findAll();
|
||||
if ($data)
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user