更新星火认知模型分析信息
This commit is contained in:
parent
de6c6021e4
commit
76a52dc9d9
@ -121,8 +121,11 @@ class UserInformationg extends BaseModel
|
|||||||
'status' => 1,
|
'status' => 1,
|
||||||
'information_id' => $id,
|
'information_id' => $id,
|
||||||
];
|
];
|
||||||
queue(AiAianalyse::class, $data);
|
$res = UserInformationgDemand::create($data);
|
||||||
return UserInformationgDemand::create($data);
|
if ($res) {
|
||||||
|
queue(AiAianalyse::class, $data);
|
||||||
|
}
|
||||||
|
return $res;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function details($id)
|
public static function details($id)
|
||||||
|
@ -80,14 +80,12 @@ class AiAianalyse
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$update_data = [
|
$update_data = [
|
||||||
'ai_aianalyse' => $answer,
|
'ai_aianalyse' => $answer,
|
||||||
'update_time' => time(),
|
'update_time' => time(),
|
||||||
];
|
];
|
||||||
unset($data['data'], $data['data_field']);
|
unset($data['data'], $data['data_field']);
|
||||||
$id = Db::name('user_informationg_demand')->where($data)->fetchSql(false)->value('id');
|
Db::name('user_informationg_demand')->where($data)->fetchSql(false)->update($update_data);
|
||||||
Db::name('user_informationg_demand')->where('id', $id)->fetchSql(false)->update($update_data);
|
|
||||||
}
|
}
|
||||||
} catch (\Exception $e) {}
|
} catch (\Exception $e) {}
|
||||||
$job->delete();
|
$job->delete();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user