30 lines
1.1 KiB
PHP
30 lines
1.1 KiB
PHP
<?php
|
|
/**
|
|
* 数据定制接口(占位) GET/POST /api/marketing/data_custom.php
|
|
* 后续扩展:定制数据需求提交、报价、交付等。
|
|
*/
|
|
require_once __DIR__ . '/../common/db.php';
|
|
require_once __DIR__ . '/../common/response.php';
|
|
require_once __DIR__ . '/../common/auth.php';
|
|
require_once __DIR__ . '/../common/logger.php';
|
|
|
|
checkPermission('marketing');
|
|
|
|
$action = $_REQUEST['action'] ?? 'info';
|
|
if ($action === 'submit' && $_SERVER['REQUEST_METHOD'] === 'POST') {
|
|
checkAjax();
|
|
$content = [
|
|
'contact_name' => trim($_POST['contact_name'] ?? ''),
|
|
'contact_phone' => trim($_POST['contact_phone'] ?? ''),
|
|
'requirements' => trim($_POST['requirements'] ?? ''),
|
|
];
|
|
logCurrent('audit', 'marketing', null, null, $content);
|
|
Response::success(null, '需求已提交(占位实现,后续接入业务流)');
|
|
}
|
|
|
|
Response::success([
|
|
'title' => '数据定制',
|
|
'description' => '按行业/区域/规模等维度定制企业数据、人员数据,功能建设中(占位)。',
|
|
'status' => 'placeholder',
|
|
]);
|