|
@@ -732,9 +732,11 @@ class ChatService implements ChatServiceInterface
|
|
|
|
|
|
public function addTopic(array $data): array
|
|
|
{
|
|
|
+ $chattopic = [];
|
|
|
try {
|
|
|
+ $data['created_at'] = date('Y-m-d H:i:s');
|
|
|
+ $data['updated_at'] = date('Y-m-d H:i:s');
|
|
|
$result = ChatTopic::insertGetId($data);
|
|
|
-
|
|
|
if ($result && $data['is_group'] == 1) {
|
|
|
//chat_group
|
|
|
$group_id = PublicData::uuid();
|