afa vor 1 Jahr
Ursprung
Commit
06be418f61
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      application/api/controller/Order.php

+ 1 - 1
application/api/controller/Order.php

@@ -148,7 +148,7 @@ class Order extends Api
             'user_id'       => $user['id'],
             'title'         => $goods_info['title'],
             'amount'        => $goods_info['price'],
-            'bonus'         => $goods_info['price'] * $task_income,
+            'bonus'         => round($goods_info['price'] * $task_income, 3),
             'user_type'     => $user['user_type'],
             'status'        => OrderModel::Pending,
         ];