Edward Yang 2022-08-19 14:15:07 +08:00
parent da28dcdcc8
commit b310755a55
1 changed files with 2 additions and 1 deletions

View File

@ -103,7 +103,8 @@ class OrderController extends Controller
if (empty($order)) {
throw new \Exception('无效的订单');
}
StateMachineService::getInstance($order)->changeStatus(StateMachineService::COMPLETED);
$comment = '用户确认收货';
StateMachineService::getInstance($order)->changeStatus(StateMachineService::COMPLETED, $comment);
return json_success(trans('shop/account.order.completed'));
}
}