Authored by 周少峰

market price

@@ -76,7 +76,6 @@ class ShopModel @@ -76,7 +76,6 @@ class ShopModel
76 } 76 }
77 77
78 $sknProList = SearchData::searchAll(array('query' => join(',', array_unique($sknList)), 'viewNum' => 20)); 78 $sknProList = SearchData::searchAll(array('query' => join(',', array_unique($sknList)), 'viewNum' => 20));
79 -  
80 if (isset($sknProList['data']['product_list']) && !empty($sknProList['data']['product_list'])) { 79 if (isset($sknProList['data']['product_list']) && !empty($sknProList['data']['product_list'])) {
81 $coverList = array(); 80 $coverList = array();
82 81
@@ -84,9 +83,9 @@ class ShopModel @@ -84,9 +83,9 @@ class ShopModel
84 'imgSize' => array(250, 250), 83 'imgSize' => array(250, 250),
85 'defaultCover' => true 84 'defaultCover' => true
86 )); 85 ));
87 -  
88 foreach ($proList as $prod) { 86 foreach ($proList as $prod) {
89 - $coverList[$prod['skn']] = array('img'=>$prod['thumb'], 'price' => '¥' . number_format(trim($prod['salePrice'], '¥'), 2, '.', ''), 'title' => $prod['name']); 87 + $prod['marketPrice'] = $prod['marketPrice'] ? $prod['marketPrice'] : $prod['salePrice'];
  88 + $coverList[$prod['skn']] = array('img'=>$prod['thumb'], 'price' => '¥' . number_format(trim($prod['marketPrice'], '¥'), 2, '.', ''), 'title' => $prod['name']);
90 } 89 }
91 foreach ($data['newArrivel']['list'] as &$v) { 90 foreach ($data['newArrivel']['list'] as &$v) {
92 if (isset($coverList[$v['productSkn']])) { 91 if (isset($coverList[$v['productSkn']])) {
@@ -21,8 +21,8 @@ define('USE_INTER_FACE_SHUNT', false);//分流开关 @@ -21,8 +21,8 @@ define('USE_INTER_FACE_SHUNT', false);//分流开关
21 //define('API_OLD', 'http://test2.open.yohobuy.com/'); 21 //define('API_OLD', 'http://test2.open.yohobuy.com/');
22 22
23 #dev环境 23 #dev环境
24 - define('API_URL', 'http://api-test4.yohops.com:9999');  
25 - define('SERVICE_URL', 'http://dev-service.yohops.com:9999/'); 24 + define('API_URL', 'http://api-test2.yohops.com:9999');
  25 + define('SERVICE_URL', 'http://service-test2.yohops.com:9999/');
26 define('YOHOBUY_URL', 'http://www.yohobuy.com/'); 26 define('YOHOBUY_URL', 'http://www.yohobuy.com/');
27 define('SERVICE_NOTIFY', 'http://test2.open.yohobuy.com/'); 27 define('SERVICE_NOTIFY', 'http://test2.open.yohobuy.com/');
28 define('API_OLD', 'http://devservice.yoho.cn:58077/'); 28 define('API_OLD', 'http://devservice.yoho.cn:58077/');
@@ -14,8 +14,8 @@ define('EXHIBITION_TICKET', 51335912);//展览票skn @@ -14,8 +14,8 @@ define('EXHIBITION_TICKET', 51335912);//展览票skn
14 14
15 define('USE_INTER_FACE_SHUNT', false);//分流开关 15 define('USE_INTER_FACE_SHUNT', false);//分流开关
16 16
17 -define('API_URL', 'http://api-test1.yohops.com:9999/');  
18 -define('SERVICE_URL', 'http://service-test1.yohops.com:9999/'); 17 +define('API_URL', 'http://api-test2.yohops.com:9999/');
  18 +define('SERVICE_URL', 'http://service-test2.yohops.com:9999/');
19 define('YOHOBUY_URL', 'http://www.yohobuy.com/'); 19 define('YOHOBUY_URL', 'http://www.yohobuy.com/');
20 define('SERVICE_NOTIFY', 'http://testservice.yoho.cn:28077/'); 20 define('SERVICE_NOTIFY', 'http://testservice.yoho.cn:28077/');
21 define('API_OLD', 'http://test2.open.yohobuy.com/'); 21 define('API_OLD', 'http://test2.open.yohobuy.com/');