|
@@ -131,7 +131,7 @@ class OrdersController extends Controller
|
|
|
return response()->error('WAP_PARAM_ERROR');
|
|
|
}
|
|
|
//获取支付类型
|
|
|
- $pay_merchant = DB::table('pay_merchants')->select('appid', 'source', 'config_info')->where('id', $channel->pay_merchant_id)->where('is_enabled', 1)->first();
|
|
|
+ $pay_merchant = DB::table('pay_merchants')->select('id','appid', 'source', 'config_info')->where('id', $channel->pay_merchant_id)->where('is_enabled', 1)->first();
|
|
|
if (!$pay_merchant || !$pay_merchant->appid || !$pay_merchant->source) return response()->error('WAP_PARAM_ERROR');
|
|
|
if($pay_merchant->source == 'PALMPAYV2'){
|
|
|
return redirect()->to($this->paympay($request,$pay_merchant));
|