|
|
|
@ -2,7 +2,10 @@ |
|
|
|
|
|
|
|
namespace App\Controller\v3; |
|
|
|
|
|
|
|
use App\Constants\v3\ErrorCode; |
|
|
|
use App\Controller\BaseController; |
|
|
|
use App\Exception\ErrorCodeException; |
|
|
|
use App\Model\v3\OrderMain; |
|
|
|
use App\Request\v3\OrderOfflineRequest; |
|
|
|
use App\Request\v3\OrderOnlineRequest; |
|
|
|
use App\Service\v3\Interfaces\OrderOfflineServiceInterface; |
|
|
|
@ -65,4 +68,23 @@ class OrderOfflineController extends BaseController |
|
|
|
); |
|
|
|
return $this->success(['data' => $data]); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 当面付完成页 |
|
|
|
*/ |
|
|
|
public function completePage() |
|
|
|
{ |
|
|
|
$globalOrderId = $this->request->input('global_order_id', 0); |
|
|
|
$userId = $this->request->input('user_id', 0); |
|
|
|
$orderMain = OrderMain::query() |
|
|
|
->with('orders.store') |
|
|
|
->where(['global_order_id' => $globalOrderId, 'user_id' => $userId]) |
|
|
|
->first(); |
|
|
|
|
|
|
|
if (empty($orderMain)) { |
|
|
|
throw new ErrorCodeException(ErrorCode::ORDER_NOT_AVAILABLE); |
|
|
|
} |
|
|
|
|
|
|
|
return $this->success(['order_main' => $orderMain]); |
|
|
|
} |
|
|
|
} |