Authored by hf

do modify domain m1.yohobuy.com mapi.yohobuy.com

@@ -84,8 +84,7 @@ class LoginData @@ -84,8 +84,7 @@ class LoginData
84 */ 84 */
85 public static function signoutSession($token) 85 public static function signoutSession($token)
86 { 86 {
87 - echo Helpers::logoutSession($token); exit;  
88 - echo Yohobuy::get( Helpers::logoutSession($token) ); exit; 87 + return Yohobuy::get( Helpers::logoutSession($token) );
89 } 88 }
90 89
91 } 90 }
@@ -41,7 +41,7 @@ class HomeController extends AbstractAction @@ -41,7 +41,7 @@ class HomeController extends AbstractAction
41 { 41 {
42 // 设置网站标题 42 // 设置网站标题
43 $this->setTitle('个人中心'); 43 $this->setTitle('个人中心');
44 - $this->setNavHeader('个人中心', $this->server('HTTP_REFERER', SITE_MAIN) ); 44 + $this->setNavHeader('个人中心', SITE_MAIN . '/?go=1');
45 45
46 $data = array( 46 $data = array(
47 'myIndexPage' => true, 47 'myIndexPage' => true,
@@ -165,31 +165,31 @@ class DetailModel @@ -165,31 +165,31 @@ class DetailModel
165 foreach ($baseInfo['goodsList'] as $value) { 165 foreach ($baseInfo['goodsList'] as $value) {
166 $colorId = intval($value['colorId']); 166 $colorId = intval($value['colorId']);
167 // 商品按颜色进行分类分组 167 // 商品按颜色进行分类分组
168 - if (isset($value['goodsImagesList'])) {  
169 - foreach ($value['goodsImagesList'] as $goods) {  
170 - $goodsList[$goods['goodsId']] = $colorId;  
171 - $goodsGroup[$colorId][] = array(  
172 - 'goodsId' => $goods['goodsId'],  
173 - 'img' => $goods['imageUrl'],  
174 - );  
175 - $colorGroup[$colorId] = array(  
176 - 'colorId' => $colorId,  
177 - 'colorName' => $value['colorName'],  
178 - 'colorImage' => Helpers::getImageUrl($value['colorImage'], 60, 60),  
179 - );  
180 - }  
181 - } 168 + if (isset($value['goodsImagesList'])) {
  169 + foreach ($value['goodsImagesList'] as $goods) {
  170 + $goodsList[$goods['goodsId']] = $colorId;
  171 + $goodsGroup[$colorId][] = array(
  172 + 'goodsId' => $goods['goodsId'],
  173 + 'img' => $goods['imageUrl'],
  174 + );
  175 + $colorGroup[$colorId] = array(
  176 + 'colorId' => $colorId,
  177 + 'colorName' => $value['colorName'],
  178 + 'colorImage' => Helpers::getImageUrl($value['colorImage'], 60, 60),
  179 + );
  180 + }
  181 + }
182 182
183 // 商品的尺码列表 183 // 商品的尺码列表
184 - if (isset($value['goodsSizeBoList'])) {  
185 - foreach ($value['goodsSizeBoList'] as $size) {  
186 - $sizeGroup[$colorId] = array(  
187 - 'sizeName' => $size['sizeName'],  
188 - 'sizeSku' => $size['goodsSizeSkuId'],  
189 - 'sizeStorage' => $size['goodsSizeStorageNum'],  
190 - );  
191 - }  
192 - } 184 + if (isset($value['goodsSizeBoList'])) {
  185 + foreach ($value['goodsSizeBoList'] as $size) {
  186 + $sizeGroup[$colorId] = array(
  187 + 'sizeName' => $size['sizeName'],
  188 + 'sizeSku' => $size['goodsSizeSkuId'],
  189 + 'sizeStorage' => $size['goodsSizeStorageNum'],
  190 + );
  191 + }
  192 + }
193 } 193 }
194 194
195 // 商品图 195 // 商品图
@@ -227,7 +227,7 @@ class DetailModel @@ -227,7 +227,7 @@ class DetailModel
227 } 227 }
228 // 已售磬 228 // 已售磬
229 elseif (!$notForSale && $soldOut) { 229 elseif (!$notForSale && $soldOut) {
230 - $result['cartInfo']['soldOut'] = true; 230 + $result['cartInfo']['soldOut'] = true;
231 } 231 }
232 // 非卖品 232 // 非卖品
233 elseif (!$soldOut && $notForSale) { 233 elseif (!$soldOut && $notForSale) {