| | |
| | | 'user_id' => $order['user_id'], |
| | | 'order_id' => $order['order_id'], |
| | | 'order_type' => $order_type, |
| | | 'total_price' => $capital['total_price'], |
| | | 'order_price' => $capital['orderPrice'], |
| | | 'is_settled' => 0, |
| | | 'shop_supplier_id' => $order['shop_supplier_id'], |
| | |
| | | $setting = Setting::getItem('basic', $order['app_id']); |
| | | $capital = [ |
| | | // 订单总金额(不含运费) |
| | | 'orderPrice' => bcsub($order['pay_price'], $order['express_price'], 2), |
| | | 'total_price' => bcsub($order['pay_price'], $order['express_price'], 2), |
| | | // 订单总金额(不含运费) 减去 结算价 = 订单利润 |
| | | 'orderPrice' => bcsub(bcsub($order['pay_price'], $order['express_price'], 2), $order['settlement_price'], 2), |
| | | // 是否记录 |
| | | 'is_record' => true |
| | | ]; |