其余文件

This commit is contained in:
2026-04-14 17:46:22 +08:00
parent 294b68fe37
commit 3691f4db22
1343 changed files with 189847 additions and 0 deletions

View File

@ -0,0 +1,26 @@
<?php
namespace app\api\controller;
use app\common\basics\Api;
use app\api\logic\AdLogic;
use app\common\server\JsonServer;
class AdContent extends Api
{
public $like_not_need_login = ['lists'];
/**
* 获取广告列表
*/
public function lists()
{
$pid = $this->request->get('pid');
$terminal = $this->request->get('terminal', '1');
if ($pid) {
$list = AdLogic::lists($pid, $terminal);
} else {
$list = [];
}
return JsonServer::success('', $list);
}
}