This commit is contained in:
wucongxing 2023-03-07 11:47:55 +08:00
parent f6da754cc2
commit dcb2149815
4 changed files with 5 additions and 3 deletions

View File

@ -20,7 +20,7 @@ class CallBackController extends AbstractController
* @return ResponseInterface
* @throws \Throwable
*/
public function patientWxPaySuccessCallBack(): ResponseInterface
public function wxPaySuccessCallBack(): ResponseInterface
{
Db::beginTransaction();

View File

@ -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;

View File

@ -377,7 +377,7 @@ Router::addGroup('/callback', function () {
// 问诊
Router::addGroup('/inquiry', function () {
// 支付成功回调
Router::post('/success', [CallBackController::class, 'WxPaySuccessCallBack']);
Router::post('/success', [CallBackController::class, 'wxPaySuccessCallBack']);
});
});

View File

@ -119,7 +119,6 @@ class WechatPay
]
];
dump($options);die;
try {
$response = $app->getClient()->postJson("v3/pay/transactions/jsapi", $options);
if ($response->isFailed()) {