Authored by 梁志锋

Merge remote-tracking branch 'origin/beta/wap' into beta/wap

@@ -24,17 +24,17 @@ class Yohobuy @@ -24,17 +24,17 @@ class Yohobuy
24 // const YOHOBUY_URL = 'http://www.yohobuy.com/'; 24 // const YOHOBUY_URL = 'http://www.yohobuy.com/';
25 25
26 //java API 26 //java API
27 - const API_URL = 'http://apih5.yoho.cn/';  
28 - const API_URL2 = 'http://apih5.yoho.cn/';  
29 - const SERVICE_URL = 'http://serviceh5.yoho.cn/';  
30 - const YOHOBUY_URL = 'http://www.yohobuy.com/';  
31 - const API_OLD = 'http://api2.open.yohobuy.com/'; 27 +// const API_URL = 'http://apih5.yoho.cn/';
  28 +// const API_URL2 = 'http://apih5.yoho.cn/';
  29 +// const SERVICE_URL = 'http://serviceh5.yoho.cn/';
  30 +// const YOHOBUY_URL = 'http://www.yohobuy.com/';
  31 +// const API_OLD = 'http://api2.open.yohobuy.com/';
32 32
33 /* 测试环境 */ 33 /* 测试环境 */
34 - /** const API_URL = 'http://testapi.yoho.cn:28078/'; // 'http://192.168.102.205:8080/gateway/' 34 + const API_URL = 'http://testapi.yoho.cn:28078/'; // 'http://192.168.102.205:8080/gateway/'
35 const SERVICE_URL = 'http://testservice.yoho.cn:28077/'; 35 const SERVICE_URL = 'http://testservice.yoho.cn:28077/';
36 const YOHOBUY_URL = 'http://www.yohobuy.com/'; 36 const YOHOBUY_URL = 'http://www.yohobuy.com/';
37 - const API_OLD = 'http://test2.open.yohobuy.com/';**/ 37 + const API_OLD = 'http://test2.open.yohobuy.com/';
38 38
39 /* 预览环境 */ 39 /* 预览环境 */
40 // const API_URL = 'http://preapi.yoho.cn/'; 40 // const API_URL = 'http://preapi.yoho.cn/';
@@ -115,7 +115,7 @@ class UserModel @@ -115,7 +115,7 @@ class UserModel
115 // 处理个人中心页面优选新品数据 115 // 处理个人中心页面优选新品数据
116 if (!empty($preferenceData['data'])) { 116 if (!empty($preferenceData['data'])) {
117 foreach ($preferenceData['data'] as $value) { 117 foreach ($preferenceData['data'] as $value) {
118 - $value = Helpers::formatProduct($value, false, true, true, 299, 388, false, false); 118 + $value = Helpers::formatProduct($value, false, true, true, 299, 388, false);
119 if (false !== $value) { 119 if (false !== $value) {
120 $result['recommendList'][] = $value; 120 $result['recommendList'][] = $value;
121 } 121 }
@@ -220,7 +220,7 @@ class IndexController extends AbstractAction @@ -220,7 +220,7 @@ class IndexController extends AbstractAction
220 $data['goodList'] += $condition; 220 $data['goodList'] += $condition;
221 $data['pageFooter'] = true; 221 $data['pageFooter'] = true;
222 222
223 - if ($title === '') { 223 + if (empty($title)) {
224 $title = $domain; 224 $title = $domain;
225 } 225 }
226 $this->setTitle($title); 226 $this->setTitle($title);