|
|
@@ -138,7 +138,7 @@ class ThirdOrderLogic extends BaseLogic
|
|
|
'goods_category_ids' => $goods['goods_category_ids'],
|
|
|
'goods_category_id' => $goods['goods_category_id'],
|
|
|
'base_service_fee' => $goods['base_service_fee'],
|
|
|
- 'service_fee' => $message['amount'],
|
|
|
+ 'service_fee' => $product['product_price'],
|
|
|
'work_pay_status'=>WorkEnum::IS_PAY_STATUS,
|
|
|
'appointment_time' => strtotime($message['begintime']),
|
|
|
'user_id'=>$user['id'],
|
|
|
@@ -166,8 +166,8 @@ class ThirdOrderLogic extends BaseLogic
|
|
|
'coupon_id'=>0,
|
|
|
'coupon_price'=>0,
|
|
|
'pay_way' => 4,
|
|
|
- 'order_total' => $message['amount'],
|
|
|
- 'order_amount' => $message['amount'],
|
|
|
+ 'order_total' => $product['product_price'],
|
|
|
+ 'order_amount' => $product['product_price'],
|
|
|
];
|
|
|
$order = RechargeOrder::create($data);
|
|
|
//生成订单服务详情
|
|
|
@@ -189,7 +189,7 @@ class ThirdOrderLogic extends BaseLogic
|
|
|
'goods_payment_type'=>$goods['goods_payment_type'],
|
|
|
'base_service_fee' => $goods['base_service_fee'],
|
|
|
'service_total' => $goods['service_total'],
|
|
|
- 'service_fee' => $message['amount'],
|
|
|
+ 'service_fee' => $product['product_price'],
|
|
|
'service_image' => $goods['service_image'],
|
|
|
'warranty_period'=>$goods['warranty_period'],
|
|
|
'fee_schedule' => $goods['fee_schedule'],
|
|
|
@@ -206,8 +206,8 @@ class ThirdOrderLogic extends BaseLogic
|
|
|
'work_id'=>$order['work_id'],
|
|
|
'user_id'=>$order['user_id'],
|
|
|
'payment_type'=>2,
|
|
|
- 'order_total'=>bcsub($goods->base_service_fee,$message['amount'],2),
|
|
|
- 'order_amount'=>bcsub($goods->base_service_fee,$message['amount'],2),
|
|
|
+ 'order_total'=>bcsub($goods->base_service_fee,$product['product_price'],2),
|
|
|
+ 'order_amount'=>bcsub($goods->base_service_fee,$product['product_price'],2),
|
|
|
'order_terminal'=>$order['order_terminal']
|
|
|
];
|
|
|
\app\common\model\recharge\RechargeOrder::create($order_weikuan_data);
|