Authored by 周少峰

market price

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