|
...
|
...
|
@@ -44,6 +44,7 @@ use App\Models\WebSetting\WebLanguage; |
|
|
|
use App\Models\WorkOrder\TicketProject;
|
|
|
|
use Illuminate\Http\Request;
|
|
|
|
use Illuminate\Support\Facades\DB;
|
|
|
|
use Illuminate\Support\Facades\Http;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 项目管理
|
|
...
|
...
|
@@ -1328,4 +1329,26 @@ class ProjectController extends BaseController |
|
|
|
$data['videoFrequency'] =$videoModel->videoFrequency();
|
|
|
|
$this->response('success',Code::SUCCESS,$data);
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @remark :获取广告先投特批
|
|
|
|
* @name :getSpAdsLists
|
|
|
|
* @author :lyh
|
|
|
|
* @method :post
|
|
|
|
* @time :2025/10/22 16:59
|
|
|
|
*/
|
|
|
|
public function getSpAdsLists()
|
|
|
|
{
|
|
|
|
$url = 'https://oa.cmer.com/api/sp_ads_lists';
|
|
|
|
// 发送 GET 请求(附带 token)
|
|
|
|
$params['token'] = md5('qqs' . date('Y-m-d'));
|
|
|
|
$response = Http::get($url, ['token' => $params]);
|
|
|
|
// 判断请求是否成功
|
|
|
|
if ($response->successful()) {
|
|
|
|
$data = $response->json(); // 自动解析 JSON
|
|
|
|
$this->response('success', Code::SUCCESS, $data);
|
|
|
|
} else {
|
|
|
|
$this->fail('拉取结果失败,请联系管理员');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} |
...
|
...
|
|