mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
调整微信抽奖活动目录
This commit is contained in:
parent
b5c86fa544
commit
a5b73a473c
@ -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) {
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
namespace app\data\controller\api;
|
||||
namespace app\data\controller\app;
|
||||
|
||||
use app\wechat\service\WechatService;
|
||||
use think\admin\Controller;
|
Loading…
x
Reference in New Issue
Block a user