|
@@ -355,6 +355,7 @@ class utils {
|
|
|
|| empty($_REQUEST["operate"])
|
|
|| empty($_REQUEST["operate"])
|
|
|
|| ($_REQUEST["action"] == "login" && $_REQUEST["operate"] == "verifcation_code")
|
|
|| ($_REQUEST["action"] == "login" && $_REQUEST["operate"] == "verifcation_code")
|
|
|
|| ($_REQUEST["action"] == "login" && $_REQUEST["operate"] == "check_uname")
|
|
|| ($_REQUEST["action"] == "login" && $_REQUEST["operate"] == "check_uname")
|
|
|
|
|
+ || ($_REQUEST["action"] == "login" && $_REQUEST["operate"] == "do_login")
|
|
|
|| ($_REQUEST["action"] == "ocean_order" && $_REQUEST["operate"] == "setting_ocean_order_display")
|
|
|| ($_REQUEST["action"] == "ocean_order" && $_REQUEST["operate"] == "setting_ocean_order_display")
|
|
|
|| ($_REQUEST["action"] == "ocean_booking" && $_REQUEST["operate"] == "setting_display")){
|
|
|| ($_REQUEST["action"] == "ocean_booking" && $_REQUEST["operate"] == "setting_display")){
|
|
|
return;
|
|
return;
|
|
@@ -365,6 +366,7 @@ class utils {
|
|
|
$user_type = "Customer";
|
|
$user_type = "Customer";
|
|
|
$user_name = common::ip();
|
|
$user_name = common::ip();
|
|
|
} elseif($_REQUEST["action"] == "login" && $_REQUEST["operate"] == "do_login"){
|
|
} elseif($_REQUEST["action"] == "login" && $_REQUEST["operate"] == "do_login"){
|
|
|
|
|
+ //移除do_login 因为在登录的过程中,是没有用户信息的
|
|
|
$user_name = $_REQUEST["uname"];
|
|
$user_name = $_REQUEST["uname"];
|
|
|
} else{
|
|
} else{
|
|
|
$user_name = _getLoginName();
|
|
$user_name = _getLoginName();
|
|
@@ -420,7 +422,10 @@ class utils {
|
|
|
|
|
|
|
|
public static function analyzeOperationDetail($action,$operate){
|
|
public static function analyzeOperationDetail($action,$operate){
|
|
|
if($action == "login" && $operate == "do_login"){
|
|
if($action == "login" && $operate == "do_login"){
|
|
|
- $detail = 'System account';
|
|
|
|
|
|
|
+ $detail = 'System Account';
|
|
|
|
|
+ if($_REQUEST['token']){
|
|
|
|
|
+ $detail = 'From Apex Online';
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
if($action == "login" && $operate == "logout"){
|
|
if($action == "login" && $operate == "logout"){
|
|
|
$detail = 'User Logout';
|
|
$detail = 'User Logout';
|
|
@@ -522,9 +527,7 @@ class utils {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
//只记录Public tracking
|
|
//只记录Public tracking
|
|
|
- public static function single_operation_log_save($page,$operation,$operation_detail){
|
|
|
|
|
- $user_type ="Customer";
|
|
|
|
|
- $user_name = common::ip();
|
|
|
|
|
|
|
+ public static function single_operation_log_save($user_type,$user_name,$page,$operation,$operation_detail){
|
|
|
$sql = "INSERT INTO public.customer_service_operation_log(user_type, user_name, page, operation, operation_detail,
|
|
$sql = "INSERT INTO public.customer_service_operation_log(user_type, user_name, page, operation, operation_detail,
|
|
|
operation_time)
|
|
operation_time)
|
|
|
VALUES ('$user_type', '$user_name', '$page', '$operation', '$operation_detail', now())";
|
|
VALUES ('$user_type', '$user_name', '$page', '$operation', '$operation_detail', now())";
|