suresh
This commit is contained in:
commit
2cffcdc4e8
@ -18,8 +18,10 @@ class App extends BaseConfig
|
|||||||
* http://example.com/
|
* http://example.com/
|
||||||
*/
|
*/
|
||||||
// public string $baseURL = 'https://mprkv.co.in/devbook';
|
// public string $baseURL = 'https://mprkv.co.in/devbook';
|
||||||
// public string $baseURL = 'http://localhost/golf_backend';
|
|
||||||
public string $baseURL = 'http://localhost:88/golf_backend';
|
public string $baseURL = 'http://localhost/golf_backend';
|
||||||
|
// public string $baseURL = 'http://localhost:88/golf_backend';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@ -125,6 +125,10 @@ class Cart_controller extends BaseController
|
|||||||
{
|
{
|
||||||
if (!session()->has('logged_user'))
|
if (!session()->has('logged_user'))
|
||||||
{
|
{
|
||||||
|
if (session()->has('token'))
|
||||||
|
{
|
||||||
|
$token = session()->get('token');
|
||||||
|
}
|
||||||
$data = $this->Cart_token_model->where('md5(token)', $token )->findAll();
|
$data = $this->Cart_token_model->where('md5(token)', $token )->findAll();
|
||||||
if ($data)
|
if ($data)
|
||||||
{
|
{
|
||||||
@ -150,6 +154,8 @@ class Cart_controller extends BaseController
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
||||||
|
$token = md5($this->session->get('logged_user'));
|
||||||
$data = $this->cartModel->where('md5(member_id)', $token )->findAll();
|
$data = $this->cartModel->where('md5(member_id)', $token )->findAll();
|
||||||
if ($data)
|
if ($data)
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user