DengTao 8 years ago
parent
commit
b90bec779e
1 changed files with 3 additions and 3 deletions
  1. 3 3
      www/protected/controllers/ROrderController.php

+ 3 - 3
www/protected/controllers/ROrderController.php

@@ -244,9 +244,9 @@ class ROrderController extends AdminController{
             $t =0;
             $t =0;
             foreach ($orders as $value) {
             foreach ($orders as $value) {
                 $orderId .= (string)$value->_id.',';
                 $orderId .= (string)$value->_id.',';
-                echo $order->final_price;
-                $fin_price = $fin_price+$order->final_price*0.5;
-                $t += $order->final_price;
+                echo $value->final_price;
+                $fin_price += $value->final_price*0.5;
+                $t += $value->final_price;
             }
             }
             echo $t*0.5;
             echo $t*0.5;
             echo $fin_price;
             echo $fin_price;