自动推广

This commit is contained in:
wangjinlei
2026-03-18 14:37:23 +08:00
parent 65ba338a7d
commit e3ec1b0ca1
5 changed files with 847 additions and 46 deletions

View File

@@ -519,10 +519,11 @@ class ExpertFinderService
->where('state', 0)
->find();
if ($exists) return 0;
$major = Db::name("major")->where("major_title",$field)->where("state",0)->find();
$major_id = $major ? $major['major_id'] : 0;
Db::name('expert_field')->insert([
'expert_id' => $expertId,
'major_id' => 0,
'major_id' => $major_id,
'field' => mb_substr($field, 0, 128),
'state' => 0,
]);