ShuanghongS há 6 meses atrás
pai
commit
405451656a

+ 2 - 2
service/ocean_booking.class.php

@@ -598,8 +598,8 @@ class ocean_booking {
         exit(); 
     }
 
-    private function _booking_excel() {  
-        $sql = common::deCode($_POST ['tmp_search'], 'D');
+    private function _booking_excel() {
+        $sql = common::deCode($_POST['tmp_search'], 'D');
         $sql = substr($sql, 0, strripos($sql, " limit"));
         if(!empty($sql)){
             $rs = common::excuteListSql($sql);

+ 1 - 1
service/ocean_order.class.php

@@ -1507,7 +1507,7 @@ class ocean_order {
     }
 
     private function _ocean_excel() {
-        $sql = common::deCode($_POST ['tmp_search'], 'D');
+        $sql = common::deCode($_POST['tmp_search'], 'D');
         //$sql = substr($sql, 0, strripos($sql, " limit"));
         if(!empty($sql)){
             $rs = common::excuteListSql($sql);

+ 1 - 1
service/robot.class.php

@@ -368,7 +368,7 @@ class robot{
             $rs = common::excuteListSql("select fixed_faq,secondary_interaction_content from public.kln_robot_chat_fixed where active = true order by id");
             $data = array();
             foreach($rs as $v){
-                $data[] = array("label" => $v['fixed_faq'],"value" =>$v['fixed_faq'],"isLong" => strlen($v['fixed_faq']) >60);
+                $data[] = array("label" => $v['fixed_faq'],"value" =>$v['fixed_faq'],"isLong" => strlen($v['fixed_faq']) >80);
             }
             $data = array("msg" => "succssful","fixed_question"=>$data);
             common::echo_json_encode(200,$data);

+ 3 - 0
utils/common.class.php

@@ -2747,6 +2747,9 @@ class common {
                 $related_Shipments .= "- **Other Containers on same Bill of Lading**: ".$data[0]['cleaned_ctnrs'];
                 $rsdata = array("Related Shipments" =>$related_Shipments);
                 $reference = utils::replacementsFixed($rsdata,$reference,[]);
+            }else{
+                $rsdata = array("Related Shipments" =>"");
+                $reference = utils::replacementsFixed($rsdata,$reference,[]);
             }
 
             //Complete Container Status