浏览代码

pay v2 debug

zz 6 年之前
父节点
当前提交
b190145132
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/Http/Controllers/Wap/Pay/OrdersController.php

+ 1 - 1
app/Http/Controllers/Wap/Pay/OrdersController.php

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