强制退款,更改状态

main
yanzai 1 year ago
parent 747ffc329a
commit fd47d5aad2

@ -825,6 +825,7 @@ class UserOrderController extends Controller
switch ($type) { switch ($type) {
case 1: case 1:
// 仅退款 // 仅退款
if ($order_info->status != 2 and $order_info->status != 4) Yo::error_echo(200053);
break; break;
case 2: case 2:
// 退款&取消预约 // 退款&取消预约
@ -871,8 +872,8 @@ class UserOrderController extends Controller
$appointment->save(); $appointment->save();
} }
$order_info->appointment_number = ''; $order_info->appointment_number = '';
$order_info->status = 5;
} }
$order_info->status = 5;
$order_info->save(); $order_info->save();
return Yo::update_echo(); return Yo::update_echo();
} }

Loading…
Cancel
Save