mirror of
https://gitee.com/koogua/course-tencent-cloud.git
synced 2025-06-25 12:09:09 +08:00
Merge remote-tracking branch 'remotes/gitee/develop' into demo
# Conflicts: # app/Http/Api/Services/Trade.php # app/Http/Home/Controllers/PublicController.php
This commit is contained in:
commit
167dab9f3f
@ -5,6 +5,7 @@ namespace App\Http\Api\Services;
|
|||||||
use App\Models\Client as ClientModel;
|
use App\Models\Client as ClientModel;
|
||||||
use App\Models\Trade as TradeModel;
|
use App\Models\Trade as TradeModel;
|
||||||
use App\Services\Logic\OrderTrait;
|
use App\Services\Logic\OrderTrait;
|
||||||
|
use App\Services\Logic\Trade\TradeInfo;
|
||||||
use App\Services\Logic\TradeTrait;
|
use App\Services\Logic\TradeTrait;
|
||||||
use App\Services\Pay\Alipay;
|
use App\Services\Pay\Alipay;
|
||||||
use App\Services\Pay\Wxpay;
|
use App\Services\Pay\Wxpay;
|
||||||
@ -60,7 +61,7 @@ class Trade extends Service
|
|||||||
$payment = ['redirect' => $redirect];
|
$payment = ['redirect' => $redirect];
|
||||||
|
|
||||||
return [
|
return [
|
||||||
'trade' => $trade,
|
'trade' => $this->handleTradeInfo($trade->sn),
|
||||||
'payment' => $payment,
|
'payment' => $payment,
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
@ -122,4 +123,11 @@ class Trade extends Service
|
|||||||
return $this->request->getHeader('X-Platform');
|
return $this->request->getHeader('X-Platform');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected function handleTradeInfo($sn)
|
||||||
|
{
|
||||||
|
$service = new TradeInfo();
|
||||||
|
|
||||||
|
return $service->handle($sn);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -80,7 +80,7 @@ class PublicController extends \Phalcon\Mvc\Controller
|
|||||||
*/
|
*/
|
||||||
public function alipayCallbackAction()
|
public function alipayCallbackAction()
|
||||||
{
|
{
|
||||||
return $this->response->redirect('/h5/#/pages/uc/orders', true);
|
return $this->response->redirect('/h5/#/pages/me/orders', true);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -88,7 +88,7 @@ class PublicController extends \Phalcon\Mvc\Controller
|
|||||||
*/
|
*/
|
||||||
public function wxpayCallbackAction()
|
public function wxpayCallbackAction()
|
||||||
{
|
{
|
||||||
return $this->response->redirect('/h5/#/pages/uc/orders', true);
|
return $this->response->redirect('/h5/#/pages/me/orders', true);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user