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