|
@@ -468,7 +468,7 @@ class IndexController extends AbstractAction |
|
@@ -468,7 +468,7 @@ class IndexController extends AbstractAction |
468
|
if (empty($appVersion)) {
|
468
|
if (empty($appVersion)) {
|
469
|
$this->setNavHeader('', true, SITE_MAIN);
|
469
|
$this->setNavHeader('', true, SITE_MAIN);
|
470
|
} else {
|
470
|
} else {
|
471
|
- $data['app_version'] = $appVersion;
|
471
|
+ $data['appVersion'] = $appVersion;
|
472
|
}
|
472
|
}
|
473
|
$this->_view->display('shop', array(
|
473
|
$this->_view->display('shop', array(
|
474
|
'shopIndex' => $data,
|
474
|
'shopIndex' => $data,
|
|
@@ -485,7 +485,7 @@ class IndexController extends AbstractAction |
|
@@ -485,7 +485,7 @@ class IndexController extends AbstractAction |
485
|
{
|
485
|
{
|
486
|
$data = array();
|
486
|
$data = array();
|
487
|
$shopId = $this->post('shop_id', 0);
|
487
|
$shopId = $this->post('shop_id', 0);
|
488
|
- $appVersion = $this->get('app_version', 0);
|
488
|
+ $appVersion = $this->post('app_version', 0);
|
489
|
$uid = $this->getUid();
|
489
|
$uid = $this->getUid();
|
490
|
do {
|
490
|
do {
|
491
|
if (!$this->isAjax()) {
|
491
|
if (!$this->isAjax()) {
|
|
@@ -497,11 +497,9 @@ class IndexController extends AbstractAction |
|
@@ -497,11 +497,9 @@ class IndexController extends AbstractAction |
497
|
$refer = urlencode($_SERVER['HTTP_REFERER']);
|
497
|
$refer = urlencode($_SERVER['HTTP_REFERER']);
|
498
|
$toUrl = Helpers::url('/signin.html')."?refer=".$refer;
|
498
|
$toUrl = Helpers::url('/signin.html')."?refer=".$refer;
|
499
|
if (!empty($appVersion)){
|
499
|
if (!empty($appVersion)){
|
500
|
- echo 'eee';
|
|
|
501
|
- $toUrl .= 'yohobuy={"action":"go.weblogin","params":{"jumpurl":{"url":"'.$refer.'","param":{}},"requesturl":{"param":{},"url":""},"priority":"Y"}}';
|
500
|
+ $toUrl .= '&yohobuy={"action":"go.weblogin","params":{"jumpurl":{"url":"'.$refer.'","param":{}},"requesturl":{"param":{},"url":""},"priority":"Y"}}';
|
502
|
}
|
501
|
}
|
503
|
$data['url'] = $toUrl;
|
502
|
$data['url'] = $toUrl;
|
504
|
-// print_r($data); exit;
|
|
|
505
|
break;
|
503
|
break;
|
506
|
}
|
504
|
}
|
507
|
if (!empty($shopId) && !empty($uid)) {
|
505
|
if (!empty($shopId) && !empty($uid)) {
|