1
This commit is contained in:
parent
f6da754cc2
commit
dcb2149815
@ -20,7 +20,7 @@ class CallBackController extends AbstractController
|
|||||||
* @return ResponseInterface
|
* @return ResponseInterface
|
||||||
* @throws \Throwable
|
* @throws \Throwable
|
||||||
*/
|
*/
|
||||||
public function patientWxPaySuccessCallBack(): ResponseInterface
|
public function wxPaySuccessCallBack(): ResponseInterface
|
||||||
{
|
{
|
||||||
Db::beginTransaction();
|
Db::beginTransaction();
|
||||||
|
|
||||||
|
|||||||
@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
namespace App\Controller;
|
namespace App\Controller;
|
||||||
|
|
||||||
|
use App\Amqp\Producer\PrescriptionDistributePhProducer;
|
||||||
use App\Constants\HttpEnumCode;
|
use App\Constants\HttpEnumCode;
|
||||||
use App\Exception\BusinessException;
|
use App\Exception\BusinessException;
|
||||||
use App\Request\UserRequest;
|
use App\Request\UserRequest;
|
||||||
@ -10,8 +11,10 @@ use App\Services\UserService;
|
|||||||
use App\Utils\Http;
|
use App\Utils\Http;
|
||||||
use Extend\Wechat\Wechat;
|
use Extend\Wechat\Wechat;
|
||||||
use Extend\Wechat\WechatPay;
|
use Extend\Wechat\WechatPay;
|
||||||
|
use Hyperf\Amqp\Producer;
|
||||||
use Hyperf\DbConnection\Db;
|
use Hyperf\DbConnection\Db;
|
||||||
use Hyperf\Snowflake\IdGeneratorInterface;
|
use Hyperf\Snowflake\IdGeneratorInterface;
|
||||||
|
use Hyperf\Utils\ApplicationContext;
|
||||||
use Psr\Container\ContainerExceptionInterface;
|
use Psr\Container\ContainerExceptionInterface;
|
||||||
use Psr\Container\NotFoundExceptionInterface;
|
use Psr\Container\NotFoundExceptionInterface;
|
||||||
use Psr\Http\Message\ResponseInterface;
|
use Psr\Http\Message\ResponseInterface;
|
||||||
|
|||||||
@ -377,7 +377,7 @@ Router::addGroup('/callback', function () {
|
|||||||
// 问诊
|
// 问诊
|
||||||
Router::addGroup('/inquiry', function () {
|
Router::addGroup('/inquiry', function () {
|
||||||
// 支付成功回调
|
// 支付成功回调
|
||||||
Router::post('/success', [CallBackController::class, 'WxPaySuccessCallBack']);
|
Router::post('/success', [CallBackController::class, 'wxPaySuccessCallBack']);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@ -119,7 +119,6 @@ class WechatPay
|
|||||||
]
|
]
|
||||||
];
|
];
|
||||||
|
|
||||||
dump($options);die;
|
|
||||||
try {
|
try {
|
||||||
$response = $app->getClient()->postJson("v3/pay/transactions/jsapi", $options);
|
$response = $app->getClient()->postJson("v3/pay/transactions/jsapi", $options);
|
||||||
if ($response->isFailed()) {
|
if ($response->isFailed()) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user