From a5b73a473c9a4dc29fd4537d2247d6b5633b7b1e Mon Sep 17 00:00:00 2001 From: Anyon Date: Sun, 11 Oct 2020 19:10:51 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E5=BE=AE=E4=BF=A1=E6=8A=BD?= =?UTF-8?q?=E5=A5=96=E6=B4=BB=E5=8A=A8=E7=9B=AE=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/data/controller/LuckdrawConfig.php | 2 +- app/data/controller/{api => app}/Luckdraw.php | 2 +- app/data/view/{api => app}/luckdraw/index.html | 0 3 files changed, 2 insertions(+), 2 deletions(-) rename app/data/controller/{api => app}/Luckdraw.php (99%) rename app/data/view/{api => app}/luckdraw/index.html (100%) diff --git a/app/data/controller/LuckdrawConfig.php b/app/data/controller/LuckdrawConfig.php index 8b8e7dbc9..23d0a13e6 100644 --- a/app/data/controller/LuckdrawConfig.php +++ b/app/data/controller/LuckdrawConfig.php @@ -33,7 +33,7 @@ class LuckdrawConfig extends Controller { if ($this->request->get('action') === 'qrc') try { [$wechat, $code] = [WechatService::WeChatQrcode(), $this->request->get('code', '')]; - $short = $wechat->shortUrl(url("@data/api.luckdraw/index/code/{$code}", [], false, true)->build()); + $short = $wechat->shortUrl(url("@data/app.luckdraw/index/code/{$code}", [], true, true)->build()); $result = $wechat->create("reply#text:活动地址:\n{$short['short_url']}"); $this->success('生成二维码成功!', "javascript:$.previewImage('{$wechat->url($result['ticket'])}')"); } catch (\think\exception\HttpResponseException $exception) { diff --git a/app/data/controller/api/Luckdraw.php b/app/data/controller/app/Luckdraw.php similarity index 99% rename from app/data/controller/api/Luckdraw.php rename to app/data/controller/app/Luckdraw.php index d26462e00..71f4ac163 100644 --- a/app/data/controller/api/Luckdraw.php +++ b/app/data/controller/app/Luckdraw.php @@ -1,6 +1,6 @@