Proyectos de Subversion LeadersLinked - Backend

Rev

Rev 17267 | Rev 17269 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 17267 Rev 17268
Línea 858... Línea 858...
858
                                'status' => 'DUPLICATE IN EXCEL'
858
                                'status' => 'DUPLICATE IN EXCEL'
859
                            ]);
859
                            ]);
860
                        }
860
                        }
861
                    }
861
                    }
Línea -... Línea 862...
-
 
862
 
-
 
863
                    try {
862
 
864
                        $key = md5($currentUser->id . '-' . $topic->uuid . '-' . $topic->uuid);
-
 
865
                        $this->cache->setItem($key, serialize($users));
863
                    $this->logger->info('Users: ' . print_r($users, true));
866
                    } catch (\Exception $e) {
864
                    $this->logger->info('Errors: ' . print_r($errors, true));
-
 
-
 
867
                        $this->logger->err('Cache operation failed: ' . $e->getMessage());
-
 
868
                        return new JsonModel([
-
 
869
                            'success' => false,
-
 
870
                            'data' => 'ERROR_CACHE_SET_ITEM: ' . $e->getMessage()
-
 
871
                        ]);
Línea 865... Línea 872...
865
                    
872
                    }
866
 
873
 
867
                    return new JsonModel([
874
                    return new JsonModel([
-
 
875
                        'success' => true,
868
                        'success' => true,
876
                        'data' => [
869
                        'data' => [
877
                            'key' => $key,
870
                            'topic' => $topic->name,
878
                            'topic' => $topic->name,
871
                            'items' => [
879
                            'items' => [
872
                                'ok' => $users,
880
                                'ok' => $users,
Línea 886... Línea 894...
886
            ]);
894
            ]);
Línea 887... Línea 895...
887
            
895
            
888
        } catch (\Exception $e) {
896
        } catch (\Exception $e) {
889
            $this->logger->err('Fatal error in uploadAction: ' . $e->getMessage() . "\n" . $e->getTraceAsString());
897
            $this->logger->err('Fatal error in uploadAction: ' . $e->getMessage() . "\n" . $e->getTraceAsString());
890
            return new JsonModel([
-
 
891
                'success' => false,
-
 
892
                'data' => 'ERROR_INTERNAL_SERVER_ERROR'
-
 
893
            ]);
898
            return new JsonModel([
894
        }
899
        }
Línea 895... Línea 900...
895
    }
900
    }
896
    
901