|
|
@@ -181,6 +181,7 @@ class GoodsService extends BaseService
|
|
|
$xdPrice = $xdPrice > 0 && $xdPrice <= 10000 ? $xdPrice : 100;
|
|
|
$info['usdt_price_rate'] = $usdtPrice;
|
|
|
$info['xd_price'] = $xdPrice;
|
|
|
+ $info['custom_uid'] = ConfigService::make()->getConfigByCode('xl_custom_id',100001);
|
|
|
if(isset($info['cost_price']) && $info['cost_price']){
|
|
|
$info['cost_price'] = moneyFormat($info['cost_price']/$usdtPrice * $xdPrice,2);
|
|
|
}
|
|
|
@@ -191,9 +192,7 @@ class GoodsService extends BaseService
|
|
|
$v['attr'] = $v['attr']? json_decode($v['attr'], true) : [];
|
|
|
$v['main_img'] = $v['main_img']? get_image_url($v['main_img']) : '';
|
|
|
$v['cost_prict'] = $v['retail_price']? moneyFormat($v['retail_price']/$usdtPrice * $xdPrice,2) : $info['cost_price'];
|
|
|
- if($v['attr']){
|
|
|
- $v['attr_name'] = $v['attr'][0]['name'];
|
|
|
- }
|
|
|
+
|
|
|
}
|
|
|
unset($v);
|
|
|
}
|