ShuanghongS 5 月之前
父節點
當前提交
7deca71c96
共有 2 個文件被更改,包括 13 次插入13 次删除
  1. 3 3
      include.ini.php
  2. 10 10
      utils/common.class.php

+ 3 - 3
include.ini.php

@@ -31,9 +31,6 @@ define('DOCUMENT_OCEAN_UPLOAD_PATH', "/DOC" . DS);
 define('DOCUMENT_SFSAIR_UPLOAD_PATH', "/DOC_AIR" . DS);
 define('DOCUMENT_SFSOCEAN_UPLOAD_PATH', "/DOC" . DS);
 
-//define('SERVER_PAHT', 'http://192.168.0.161/k_new_online/');
-define('SERVER_PAHT', 'https://online-beta.kln.com/');
-
 if (preg_match("/(bot|crawl|spider|slurp)/i", $_SERVER['HTTP_USER_AGENT'])) {
     header('HTTP/1.1 403 Forbidden');
     exit;
@@ -54,11 +51,14 @@ include_once ONLINE_ROOT . 'libs' . DS . 'phpXLSWriter' . DS . "xlsxwriter.class
 //测试服务器
 if(utils::startWith($_SERVER["HTTP_HOST"],"online-beta.kln.com")){
     define('SERVER_PAHT', 'https://online-beta.kln.com/online_backend/');
+    define('SERVER_Vue_PAHT', 'https://online-beta.kln.com/');
 }elseif(utils::startWith($_SERVER["HTTP_HOST"],"online.kln.com")){
     define('SERVER_PAHT', 'https://online.kln.com/online_backend/');
+    define('SERVER_Vue_PAHT', 'https://online.kln.com/');
 }else{
     //本地测试demo
     define('SERVER_PAHT', 'http://192.168.0.161/Customer_Service_Online/');
+    define('SERVER_Vue_PAHT', 'http://192.168.0.161/k_new_online/');
 }
 
 $tar = common::excuteObjectSql("select item_value from config where item='Current_Used_Company'");

+ 10 - 10
utils/common.class.php

@@ -2631,7 +2631,7 @@ class common {
             if($fixedChat["fixed_faq"] == "Shipments arriving in the next 7 days."){   
                 foreach($data as $key =>$d){
                     $serial_no = common::deCode($d['serial_no'], 'E');
-                    $httpUrl = SERVER_PAHT."tracking/detail?a=".$serial_no."&_schemas=".$d["order_from"];
+                    $httpUrl = SERVER_Vue_PAHT."tracking/detail?a=".$serial_no."&_schemas=".$d["order_from"];
                     $data[$key]['action'] = '<a href="'.$httpUrl.'" target="_blank">Details</a> <a href="'.SERVER_PAHT.'SystemSettings" target="_blank">Notify</a>';
                 }
             }
@@ -2658,7 +2658,7 @@ class common {
 
             $total = array("Download_Complete" =>"");
             if ($count > 10){
-                $httpUrl = "main_new_version.php?action=ai_chat&operate=download&faq=". common::deCode($fixedChat["fixed_faq"]);
+                $httpUrl = SERVER_PAHT."main_new_version.php?action=robot_chat&operate=download&faq=". common::deCode($fixedChat["fixed_faq"]);
                 $download_complete = '- Due to page limitations, only the first 10 records are currently displayed. If you need the complete data, please click the <a href="'.$httpUrl.'" target="_blank">Download Complete</a> button.';
                 $total = array("Download_Complete" =>$download_complete);
             }
@@ -2698,7 +2698,7 @@ class common {
                 $temp['locations'] = $d['locations'];
 
                 $serial_no = common::deCode($d['serial_no'], 'E');
-                $httpUrl = SERVER_PAHT."tracking/detail?a=".$serial_no."&_schemas=".$d["order_from"];
+                $httpUrl = SERVER_Vue_PAHT."tracking/detail?a=".$serial_no."&_schemas=".$d["order_from"];
                 $temp['action'] = '<a href="'.$httpUrl.'" target="_blank">Details</a> <a href="SystemSettings" target="_blank">Notify</a>';
                 $refer_data[] = $temp;
             }
@@ -2723,7 +2723,7 @@ class common {
 
             $total = array("Download_Complete" =>"");
             if ($count > 10){
-                $httpUrl = "main_new_version.php?action=ai_chat&operate=download&faq=". common::deCode($fixedChat["fixed_faq"]);
+                $httpUrl = SERVER_PAHT."main_new_version.php?action=robot_chat&operate=download&faq=". common::deCode($fixedChat["fixed_faq"]);
                 $download_complete = '- Due to page limitations, only the first 10 records are currently displayed. If you need the complete data, please click the <a href="'.$httpUrl.'" target="_blank">Download Complete</a> button.';
                 $total = array("Download_Complete" =>$download_complete);
             }
@@ -2862,7 +2862,7 @@ class common {
                 $temp['uncity'] = $d['uncity'];
 
                 $serial_no = common::deCode($d['serial_no'], 'E');
-                $httpUrl = SERVER_PAHT."tracking/detail?a=".$serial_no."&_schemas=".$d["order_from"];
+                $httpUrl = SERVER_Vue_PAHT."tracking/detail?a=".$serial_no."&_schemas=".$d["order_from"];
                 $temp['action'] = '<a href="'.$httpUrl.'" target="_blank">Details</a> <a href="SystemSettings" target="_blank">Notify</a>';
                 $refer_data[] = $temp;
             }
@@ -2886,7 +2886,7 @@ class common {
 
             $total = array("Download_Complete" =>"");
             if ($count > 10){
-                $httpUrl = "main_new_version.php?action=ai_chat&operate=download&faq=". common::deCode($fixedChat["fixed_faq"]);
+                $httpUrl = SERVER_PAHT."main_new_version.php?action=robot_chat&operate=download&faq=". common::deCode($fixedChat["fixed_faq"]);
                 $download_complete = '- Due to page limitations, only the first 10 records are currently displayed. If you need the complete data, please click the <a href="'.$httpUrl.'" target="_blank">Download Complete</a> button.';
                 $total = array("Download_Complete" =>$download_complete);
             }
@@ -2928,7 +2928,7 @@ class common {
                 $temp['locations'] = $d['locations'];
 
                 $serial_no = common::deCode($d['serial_no'], 'E');
-                $httpUrl = SERVER_PAHT."tracking/detail?a=".$serial_no."&_schemas=".$d["order_from"];
+                $httpUrl = SERVER_Vue_PAHT."tracking/detail?a=".$serial_no."&_schemas=".$d["order_from"];
                 $temp['action'] = '<a href="'.$httpUrl.'" target="_blank">Details</a> <a href="SystemSettings" target="_blank">Notify</a>';
                 $refer_data[] = $temp;
             }
@@ -2949,7 +2949,7 @@ class common {
 
             $total = array("Download_Complete" =>"");
             if ($count > 10){
-                $httpUrl = "main_new_version.php?action=ai_chat&operate=download&faq=". common::deCode($fixedChat["fixed_faq"]);
+                $httpUrl = SERVER_PAHT."main_new_version.php?action=robot_chat&operate=download&faq=". common::deCode($fixedChat["fixed_faq"]);
                 $download_complete = '- Due to page limitations, only the first 10 records are currently displayed. If you need the complete data, please click the <a href="'.$httpUrl.'" target="_blank">Download Complete</a> button.';
                 $total = array("Download_Complete" =>$download_complete);
             }
@@ -3020,7 +3020,7 @@ class common {
                 $temp['day_to_arr'] = $d['day_to_arr'];
 
                 $serial_no = common::deCode($d['serial_no'], 'E');
-                $httpUrl = SERVER_PAHT."tracking/detail?a=".$serial_no."&_schemas=".$d["order_from"];
+                $httpUrl = SERVER_Vue_PAHT."tracking/detail?a=".$serial_no."&_schemas=".$d["order_from"];
                 $temp['action'] = '<a href="'.$httpUrl.'" target="_blank">Details</a> <a href="SystemSettings" target="_blank">Notify</a>';
                 $refer_data[] = $temp;
             }
@@ -3029,7 +3029,7 @@ class common {
 
             $total = array("Download_Complete" =>"");
             if ($count > 10){
-                $httpUrl = "main_new_version.php?action=ai_chat&operate=download&faq=". common::deCode($fixedChat["fixed_faq"]);
+                $httpUrl = SERVER_PAHT."main_new_version.php?action=robot_chat&operate=download&faq=". common::deCode($fixedChat["fixed_faq"]);
                 $download_complete = '- Due to page limitations, only the first 10 records are currently displayed. If you need the complete data, please click the <a href="'.$httpUrl.'" target="_blank">Download Complete</a> button.';
                 $total = array("Download_Complete" =>$download_complete);
             }