Commit 7cb5dd02 authored by zw's avatar zw

微信授权

parent 38c9ebc8
...@@ -16,7 +16,7 @@ use think\Response; ...@@ -16,7 +16,7 @@ use think\Response;
class Index class Index
{ {
private $url = CURRENT_URL . "/app_broker/index"; private $url;
private $_wxApi; private $_wxApi;
private $wxInfoModel; private $wxInfoModel;
private $userModel; private $userModel;
...@@ -26,8 +26,15 @@ class Index ...@@ -26,8 +26,15 @@ class Index
$this->_wxApi = new WxCallbackUntils(); $this->_wxApi = new WxCallbackUntils();
$this->wxInfoModel = new UWxInfo(); $this->wxInfoModel = new UWxInfo();
$this->userModel = new Users(); $this->userModel = new Users();
$this->url = CURRENT_URL . "/app_broker/index";
} }
/**
* @return array
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
*/
public function index() public function index()
{ {
$code = empty($_GET['code']) ? null : $_GET['code']; $code = empty($_GET['code']) ? null : $_GET['code'];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment