|
@@ -36,7 +36,7 @@ class Cart extends Controller
|
|
|
{
|
|
|
$userId = Session::get('user_id');
|
|
|
if (empty($userId)) {
|
|
|
- Cache::set('returnuri', '/index/cart/shoppingCart.html', 300);
|
|
|
+ Session::set('returnuri', '/index/cart/shoppingCart.html');
|
|
|
return redirect('/index/passport/login.html');
|
|
|
//return view('passport/logIn');
|
|
|
}
|
|
@@ -143,7 +143,7 @@ class Cart extends Controller
|
|
|
$key = $this->request->param('key', '');
|
|
|
$userId = Session::get('user_id');
|
|
|
if (empty($userId)) {
|
|
|
- Cache::set('returnuri', '/index/index/productDetails.html?goodsId=' . $goodsId . '&key=' . $key, 300);
|
|
|
+ Session::set('returnuri', '/index/index/productDetails.html?goodsId=' . $goodsId . '&key=' . $key, 300);
|
|
|
return $this->renderJson(config('status.not_logged'), 'Log in please!');
|
|
|
}
|
|
|
if (!empty($key)) {
|