Exemplo n.º 1
0
 /**
  * 微信JSSDK配置
  */
 public function wechatPayConfig()
 {
     $this->V(['url' => []]);
     //微信JS
     $wechat = new \System\lib\Wechat\Wechat($this->config('WEIXIN_CONFIG'));
     //获取jsapi
     $wechatConfig = $wechat->getJsSign($_POST['url']);
     $this->R(['wechatConfig' => $wechatConfig]);
 }