1、新增一个所有好友的流量池

2、旧版场景获客数据迁移
3、场景获客功能兼容旧版数据
This commit is contained in:
wong
2026-01-07 10:41:39 +08:00
parent 228d59402f
commit b2e84a2259
15 changed files with 516 additions and 57 deletions

View File

@@ -1591,11 +1591,11 @@ class WorkbenchGroupPushController extends Controller
}
} else {
// 其他情况,正常处理并验证
$contentGroupsExisting = $originalConfig ? $this->decodeJsonArray($originalConfig->contentLibraries ?? []) : [];
$contentGroupsParam = $this->getParamValue($param, 'contentGroups', null);
$contentGroups = $contentGroupsParam !== null
? $this->extractIdList($contentGroupsParam, '内容库参数格式错误')
: $contentGroupsExisting;
$contentGroupsExisting = $originalConfig ? $this->decodeJsonArray($originalConfig->contentLibraries ?? []) : [];
$contentGroupsParam = $this->getParamValue($param, 'contentGroups', null);
$contentGroups = $contentGroupsParam !== null
? $this->extractIdList($contentGroupsParam, '内容库参数格式错误')
: $contentGroupsExisting;
// 其他情况,内容库为必填
if (empty($contentGroups)) {
throw new \Exception('请至少选择一个内容库');