v1.0.19: 修复人员编辑入口缺失(person.js addPerson/editPerson) + 渠道明细数量字段名(analysis.php cnt) + CDP全量验证43项PASS
This commit is contained in:
@@ -54,5 +54,14 @@ if (!empty($data)) {
|
||||
$pdo->prepare("UPDATE persons SET $sets WHERE id = ?")->execute($params);
|
||||
}
|
||||
|
||||
// 工作履历(v1.0.18:可选,整表替换)
|
||||
if (array_key_exists('experiences', $_POST)) {
|
||||
$experiences = json_decode($_POST['experiences'], true);
|
||||
if (!is_array($experiences)) {
|
||||
Response::error('工作履历格式错误', 400);
|
||||
}
|
||||
savePersonExperiences($pdo, $id, $experiences);
|
||||
}
|
||||
|
||||
logCurrent('update', 'person', 'persons', $id, ['before' => $old, 'after' => $data, 'contacts_replaced' => $contactsChanged]);
|
||||
Response::success(null, '更新成功');
|
||||
|
||||
Reference in New Issue
Block a user