修改兼容

This commit is contained in:
liu 2024-06-11 16:06:17 +08:00
parent c2119f8132
commit b951c0c258

View File

@ -160,7 +160,7 @@ class OrderLogic extends BaseLogic
//成本价 收益
$order = [
'create_time' => time(),
'order_id' => $params['order_id']?:getNewOrderId('PF'),
'order_id' => $params['order_id'] ?? getNewOrderId('PF'),
'total_price' => self::$total_price, //总价
'cost' => self::$cost, //成本价1-
'profit' => self::$profit, //利润