|
|
@@ -108,9 +108,9 @@ class TestController extends BaseController
|
|
|
echo $orderSn . ' ' . $currentAmount . ' ' . $actPrice . ' ' . $discountAmount . ' ' . $labourCost . ' ' . $tkPrice;
|
|
|
die;
|
|
|
}
|
|
|
- if(floatval($actPrice)!=floatval($currentAmount)){
|
|
|
- echo $actPrice . ' ' . $currentAmount . ' ' . $orderSn .' ===='. "\n";
|
|
|
- }else{
|
|
|
+ if (floatval($actPrice) != floatval($currentAmount)) {
|
|
|
+ echo $actPrice . ' ' . $currentAmount . ' ' . $orderSn . ' ====' . abs(bcsub($actPrice, $currentAmount, 2)) . "\n";
|
|
|
+ } else {
|
|
|
echo $actPrice . ' ' . $currentAmount . ' ' . $orderSn . "\n";
|
|
|
}
|
|
|
|