This commit is contained in:
suresh 2023-06-23 10:59:38 +05:30
commit 2cffcdc4e8
2 changed files with 10 additions and 2 deletions

View File

@ -18,10 +18,12 @@ class App extends BaseConfig
* http://example.com/
*/
// 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';
/**
* Allowed Hostnames in the Site URL other than the hostname in the baseURL.
* If you want to accept multiple Hostnames, set this.

View File

@ -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)
{