作者 潘浩文
1 个管道 的构建 通过 耗费 0 秒

个人中心接口设计

@@ -19,9 +19,10 @@ class PayController extends HomeBaseController @@ -19,9 +19,10 @@ class PayController extends HomeBaseController
19 { 19 {
20 parent::_initialize(); 20 parent::_initialize();
21 $this->options = [ 21 $this->options = [
22 - 'app_id' => config('wechat_config.app_id'),  
23 - 'secret' => config('wechat_config.secret'),  
24 - 'payment' => config('wechat_config.payment'), 22 + 'app_id' => config('app_id'),
  23 + 'secret' => config('app_secret'),
  24 + 'wx_mch_id' => config('wx_mch_id'),
  25 + 'wx_pay_key' => config('wx_pay_key'),
25 ]; 26 ];
26 } 27 }
27 28