修改科学计算字符类型
This commit is contained in:
@@ -388,10 +388,11 @@ class UserCouponService extends BaseService
|
||||
continue;
|
||||
}
|
||||
|
||||
$product_price = bcadd($product_price,
|
||||
$product_price = bcadd(
|
||||
(string)$product_price,
|
||||
bcmul( // 商品价格*实际数量数量
|
||||
$coupon_product_data['product_price'],
|
||||
$coupon_product_data['actual_quantity'],
|
||||
(string)$coupon_product_data['product_price'],
|
||||
(string)$coupon_product_data['actual_quantity'],
|
||||
2
|
||||
),
|
||||
2
|
||||
@@ -403,10 +404,11 @@ class UserCouponService extends BaseService
|
||||
if ($coupon['application_scope'] == 1 || $coupon['application_scope'] == 6){
|
||||
foreach ($coupon_product_datas as $coupon_product_data){
|
||||
// 计算商品总金额
|
||||
$product_price = bcadd($product_price,
|
||||
$product_price = bcadd(
|
||||
(string)$product_price,
|
||||
bcmul( // 商品价格*数量
|
||||
$coupon_product_data['product_price'],
|
||||
$coupon_product_data['actual_quantity'],
|
||||
(string)$coupon_product_data['product_price'],
|
||||
(string)$coupon_product_data['actual_quantity'],
|
||||
2
|
||||
),
|
||||
2
|
||||
|
||||
Reference in New Issue
Block a user