|
|
@@ -1004,8 +1004,8 @@ class ProductRepository extends BaseRepository
|
|
1004
|
1004
|
$res['yanglao']=($k['yanglao']);
|
|
1005
|
1005
|
if($res['mer_id'] != 496){
|
|
1006
|
1006
|
if($res['mer_id'] != 491){
|
|
1007
|
|
- $res['jfduihuan']=($k['jfduihuan']);
|
|
1008
|
|
- $res['jdduihuan']=($k['jdduihuan']);
|
|
|
1007
|
+ $res['jfduihuan']=($k['jfduihuan']??0);
|
|
|
1008
|
+ $res['jdduihuan']=($k['jdduihuan']??0);
|
|
1009
|
1009
|
}
|
|
1010
|
1010
|
}
|
|
1011
|
1011
|
|
|
|
@@ -1781,7 +1781,7 @@ class ProductRepository extends BaseRepository
|
|
1781
|
1781
|
$merchant = app()->make(MerchantRepository::class);
|
|
1782
|
1782
|
$merchantInfo = $merchant->get($product['mer_id']);
|
|
1783
|
1783
|
// 1企业2个体3个人
|
|
1784
|
|
- if ($merchantInfo && in_array($merchantInfo['type'],[2,3])) {
|
|
|
1784
|
+ if ($merchantInfo && in_array($merchantInfo['type'],[1,2,3])) {
|
|
1785
|
1785
|
//商贸区
|
|
1786
|
1786
|
$jf = $product['price'] - bcmul($product['concession_pri'],0.3, 2) . ' + ' . bcmul($product['concession_pri'],0.3, 2);
|
|
1787
|
1787
|
$jd = $product['price'] - bcmul($product['concession_pri'],0.35, 2) . ' + ' . bcmul($product['concession_pri'],0.35, 2);
|