调整微信抽奖活动目录

This commit is contained in:
Anyon 2020-10-11 19:10:51 +08:00
parent b5c86fa544
commit a5b73a473c
3 changed files with 2 additions and 2 deletions

View File

@ -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) {

View File

@ -1,6 +1,6 @@
<?php
namespace app\data\controller\api;
namespace app\data\controller\app;
use app\wechat\service\WechatService;
use think\admin\Controller;