更新
This commit is contained in:
@@ -4,14 +4,16 @@ declare(strict_types=1);
|
||||
|
||||
namespace app\api\controller;
|
||||
|
||||
use app\BaseController;
|
||||
use app\common\service\qywx\QywxPromotionOpenWorkService;
|
||||
use app\common\service\qywx\QywxPromotionRedirectService;
|
||||
use think\facade\Log;
|
||||
|
||||
/** 企业微信推广公开端点:服务商回调、授权回跳、JS 与随机跳转。 */
|
||||
class QywxPromotionPublicController extends BaseController
|
||||
class QywxPromotionPublicController extends BaseApiController
|
||||
{
|
||||
/** 公开安装代码、随机跳转与企业微信服务商回调均不依赖前台用户登录。 */
|
||||
public array $notNeedLogin = ['script', 'redirect', 'providerCallback', 'authCallback'];
|
||||
|
||||
public function script(string $key)
|
||||
{
|
||||
if (!QywxPromotionRedirectService::poolExists($key)) {
|
||||
|
||||
Reference in New Issue
Block a user