Commit e7c5b626 authored by jianghaiming's avatar jianghaiming

updateS:Et

parent f9cd2fab
......@@ -743,7 +743,7 @@ class GoodsService
{
$clearPrice = $skuParams["clear_price"];
$price = $skuParams["price"];
$chargeFee = !empty($price) ? bcmul($price , self::CHARGEFEE,2) : 0; //手续费 (分)
$chargeFee = !empty($price) ? (float)bcmul($price , self::CHARGEFEE,2) : 0; //手续费 (分)
if ($clearPrice > 0 && $clearPrice > $price) {
throw new GoodsException(['cus' => 39]);
}
......
......@@ -351,6 +351,7 @@ class MarketingService
private static function addFenxiaoMarketing($params)
{
$commissionMode = !empty($params['commission_mode']) ? $params['commission_mode'] : 1;
$marketingName = !empty($params['marketing_name']) ? $params['marketing_name'] : '';
$firstCommissionRate = !empty($params['first_commission_value']) ? $params['first_commission_value']*100 : 0;
......@@ -367,7 +368,7 @@ class MarketingService
throw new MarketingException(['cus'=>15]);
}
}
if (empty($goodsSkuId)) {
throw new MarketingException(['cus'=>12]);
}
......@@ -486,7 +487,7 @@ class MarketingService
foreach ($goodsSkuList as $key => $value) {
$clearPrice = !empty($value["clear_price"]) ? $value["clear_price"] : 0;
$price = !empty($value["price"]) ? $value["price"] : 0;
$chargeFee = !empty($price) ? bcmul($price , self::CHARGEFEE,2) : 0; //手续费 (分)
$chargeFee = !empty($price) ? (float)bcmul($price , self::CHARGEFEE,2) : 0; //手续费 (分)
if (!empty($clearPrice) && $clearPrice > 0) {
if ($commissionMode == Marketing::COMMISSION_MODE_RATE) {
$commissionTotal = ($firstCommissionRate + $secondCommissionRate) / 10000 * $price;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment