rabin 3 年之前
父節點
當前提交
0b93af96cb
共有 2 個文件被更改,包括 5 次插入3 次删除
  1. 1 1
      service/agent/src/My.php
  2. 4 2
      service/mail/lib/Manage.php

+ 1 - 1
service/agent/src/My.php

@@ -1188,7 +1188,7 @@ class My extends Core
                             $info['data'][] = array
                             (
                                 'name' => $shop['name'],
-                                'cash' => $v,
+                                'cash' => round($v, 2),
                             );
                         }
                     }

+ 4 - 2
service/mail/lib/Manage.php

@@ -706,7 +706,8 @@ class Manage
                 }
                 $price = ($v['price'] - $c_price);
                 $total += $price;
-                $shop[$v['type_id']] += round($price * $per, 2);
+                $shop[$v['type_id']] += $price * $per;
+                $shop[$v['type_id']] = round($shop[$v['type_id']], 2);
             }
         }
         
@@ -726,7 +727,8 @@ class Manage
                 }
                 $price = $v['buy'];
                 $total += $price;
-                $shop[$v['shop_id']] += round($price * $per, 2);
+                $shop[$v['shop_id']] += $price * $per;
+                $shop[$v['shop_id']] = round($shop[$v['shop_id']], 2);
             }
         }
         return array(round($total, 2), round($total*$per, 2), $shop);