|
@@ -1337,6 +1337,15 @@ class OrdersController extends Controller
|
|
|
Log::info('wcback_palmpay_request');
|
|
|
try {
|
|
|
$data = $request->except('_url');
|
|
|
+ unset($data['sign']);
|
|
|
+
|
|
|
+ $pay_merchant = DB::table('pay_merchants')->select('appid', 'source', 'config_info')->where('id', $order->pay_merchant_id)->first();
|
|
|
+
|
|
|
+ $pay_merchant_config = json_decode($pay_merchant->config_info, true);
|
|
|
+ $wechat_pay = WechatPay::instance($pay_merchant->source, $pay_merchant_config);
|
|
|
+ $sign = $wechat_pay->signs($data);
|
|
|
+
|
|
|
+ dd($sign);
|
|
|
|
|
|
//订单
|
|
|
$trade_no = $data['out_no'];
|
|
@@ -1350,7 +1359,7 @@ class OrdersController extends Controller
|
|
|
exit();
|
|
|
}
|
|
|
|
|
|
- $pay_merchant = DB::table('pay_merchants')->select('appid', 'source', 'config_info')->where('id', $order->pay_merchant_id)->first();
|
|
|
+
|
|
|
|
|
|
//校验签名
|
|
|
// $sign = _sign($data, json_decode($pay_merchant->config_info, 1)['appKey']);
|