|
|
|
@ -20,6 +20,7 @@ use Hyperf\DbConnection\Db; |
|
|
|
use Hyperf\Guzzle\CoroutineHandler; |
|
|
|
use Exception; |
|
|
|
use Hyperf\Di\Annotation\Inject; |
|
|
|
use Symfony\Component\HttpFoundation\Request; |
|
|
|
|
|
|
|
class NotifyController extends BaseController |
|
|
|
{ |
|
|
|
@ -54,6 +55,16 @@ class NotifyController extends BaseController |
|
|
|
$config = config('wxpay'); |
|
|
|
$app = Factory::payment($config); |
|
|
|
$app['guzzle_handler'] = CoroutineHandler::class; |
|
|
|
|
|
|
|
$get = $this->request->getQueryParams(); |
|
|
|
$post = $this->request->getParsedBody(); |
|
|
|
$cookie = $this->request->getCookieParams(); |
|
|
|
$files = $this->request->getUploadedFiles(); |
|
|
|
$server = $this->request->getServerParams(); |
|
|
|
$xml = $this->request->getBody()->getContents(); |
|
|
|
|
|
|
|
$app['request'] = new Request($get,$post,[],$cookie,$files,$server,$xml); |
|
|
|
|
|
|
|
var_dump('inside'); |
|
|
|
// 通知回调,进行业务处理
|
|
|
|
Db::beginTransaction(); |
|
|
|
@ -109,9 +120,7 @@ class NotifyController extends BaseController |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// return true;
|
|
|
|
return true; |
|
|
|
} |
|
|
|
|
|
|
|
// 修改订单、子订单状态
|
|
|
|
@ -188,6 +197,8 @@ class NotifyController extends BaseController |
|
|
|
$res = $this->feiePrintService->feiePrint($orderMain->order_num); |
|
|
|
var_dump($res); |
|
|
|
|
|
|
|
return true; |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
var_dump('$response', $response); |
|
|
|
|