|
|
@@ -15,7 +15,7 @@ use Illuminate\Support\Facades\DB;
|
|
|
|
|
|
/**
|
|
|
* 农贸市场订单逻辑
|
|
|
- *
|
|
|
+ *
|
|
|
* 处理订单相关的核心业务逻辑
|
|
|
*/
|
|
|
class MexOrderLogic
|
|
|
@@ -123,7 +123,7 @@ class MexOrderLogic
|
|
|
}
|
|
|
|
|
|
// 直接计算总金额,信任Fund模块的精度处理
|
|
|
- $totalAmount = $price * $quantity;
|
|
|
+ $totalAmount = bcmod($price , $quantity,9) ;
|
|
|
|
|
|
try {
|
|
|
// 1. 创建订单记录
|
|
|
@@ -208,7 +208,7 @@ class MexOrderLogic
|
|
|
|
|
|
/**
|
|
|
* 获取用户订单列表
|
|
|
- *
|
|
|
+ *
|
|
|
* @param int $userId 用户ID
|
|
|
* @param int $page 页码
|
|
|
* @param int $pageSize 每页数量
|
|
|
@@ -230,7 +230,7 @@ class MexOrderLogic
|
|
|
|
|
|
/**
|
|
|
* 获取订单详情
|
|
|
- *
|
|
|
+ *
|
|
|
* @param int $userId 用户ID
|
|
|
* @param int $orderId 订单ID
|
|
|
* @return array|null 订单详情
|