|
@@ -27,6 +27,7 @@ use App\Modules\Trade\Models\PayMerchant;
|
|
|
use App\Modules\Trade\Pay\OrderArousePayFactory;
|
|
|
use App\Modules\Trade\Pay\OrderPaySuccess;
|
|
|
use App\Modules\Trade\Services\PayMerchantService;
|
|
|
+use EasyWeChat\Support\XML;
|
|
|
use Exception;
|
|
|
use Log;
|
|
|
|
|
@@ -616,11 +617,11 @@ class OrdersController extends BaseController
|
|
|
*/
|
|
|
function wxback(Request $request)
|
|
|
{
|
|
|
- $param = $request->except('_url');
|
|
|
- myLog('wxpay')->info($param);
|
|
|
- if (isset($param['attach'])) {
|
|
|
+ $xml = XML::parse(strval($request->getContent()));
|
|
|
+ myLog('wxpay')->info($xml);
|
|
|
+ if (isset($xml['attach'])) {
|
|
|
|
|
|
- $pay_merchant_name = $param['attach'];
|
|
|
+ $pay_merchant_name = $xml['attach'];
|
|
|
$config = PayMerchantService::getPayConfigByNameStatic($pay_merchant_name);
|
|
|
$app = PayFactory::official($config);
|
|
|
$response = $app->notify()->handleNotify(function ($notify, $successful) {
|