Commit 7cb5dd02 authored by zw's avatar zw

微信授权

parent 38c9ebc8
......@@ -16,7 +16,7 @@ use think\Response;
class Index
{
private $url = CURRENT_URL . "/app_broker/index";
private $url;
private $_wxApi;
private $wxInfoModel;
private $userModel;
......@@ -26,8 +26,15 @@ class Index
$this->_wxApi = new WxCallbackUntils();
$this->wxInfoModel = new UWxInfo();
$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()
{
$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