ShuanghongS hace 10 meses
padre
commit
2688b42530
Se han modificado 1 ficheros con 7 adiciones y 1 borrados
  1. 7 1
      service/ocean_order.class.php

+ 7 - 1
service/ocean_order.class.php

@@ -239,6 +239,12 @@ class ocean_order {
                         if($format['auto_sync_to_station'] == "Origin and Destination Stations"){
                             //这个都同步,不需要手动补充记录去阻止文件的同步
                         }
+                    } else {
+                        //如果没有配置。这代表不同步文件
+                        $sql .= "INSERT INTO public.ra_online_doc_upload_log(serial_no, station, download_time)
+                                VALUES ('".$serial_no."', '" .common::check_input($destination_station) . "', now());";
+                        $sql .= "INSERT INTO public.ra_online_doc_upload_log(serial_no, station, download_time)
+                                VALUES ('".$serial_no."', '" .common::check_input($origin_station) . "', now());";       
                     }
                     
                 }
@@ -1355,7 +1361,7 @@ class ocean_order {
                 //$document_data[] = array("file_type"=>$file_type,"file"=>$file_arr);
                 //按现在的逻辑,有值才会显示
                 foreach($file_arr as $f){
-                    $document_data[] = array("file_type"=>$file_type,"file"=>$f);
+                    $document_data[] = array("file_type"=>$f["format_name"],"file"=>$f);
                 }
             }
         }