diff --git a/Application/Admin/Controller/MiniProgramController.class.php b/Application/Admin/Controller/MiniProgramController.class.php new file mode 100644 index 000000000..0b5fff869 --- /dev/null +++ b/Application/Admin/Controller/MiniProgramController.class.php @@ -0,0 +1,31 @@ +ajaxReturn([ + 'status' => 0, + 'msg' => 'code不能为空', + ]); + } + $url = "https://api.weixin.qq.com/sns/jscode2session?appid={$this->appId}&secret={$this->secert}&js_code={$code}"; + $r = file_get_contents($url); + echo $r; + } + + +}