调试信用购订单确认
This commit is contained in:
parent
64516b41d4
commit
ff5fe1e2cd
@ -2515,14 +2515,14 @@ class StoreOrderRepository extends BaseRepository
|
||||
* @return void
|
||||
* @throws Exception
|
||||
*/
|
||||
public function confirm($user, $id, $type)
|
||||
public function confirm($id, $type)
|
||||
{
|
||||
/** @var StoreGroupOrderRepository $groupOrderRepository */
|
||||
$groupOrderRepository = app()->make(StoreGroupOrderRepository::class);
|
||||
$groupOrderRepository->getAll = true;
|
||||
Db::startTrans();
|
||||
try {
|
||||
$groupOrder = $groupOrderRepository->detail($user['uid'], $id, false);
|
||||
$groupOrder = $groupOrderRepository->get($id);
|
||||
if ($groupOrder->pay_type != StoreGroupOrder::PAY_TYPE_CREDIT_BUY) {
|
||||
throw new Exception('订单类型错误');
|
||||
}
|
||||
|
@ -364,7 +364,7 @@ class StoreOrder extends BaseController
|
||||
$id = $this->request->param('id/d');
|
||||
$type = $this->request->param('type/d');
|
||||
try {
|
||||
$repository->confirm($this->request->userInfo(), $id, $type);
|
||||
$repository->confirm($id, $type);
|
||||
return app('json')->success('success');
|
||||
} catch (\Exception $e) {
|
||||
return app('json')->fail($e->getMessage());
|
||||
|
Loading…
x
Reference in New Issue
Block a user