Commit 7209be68 by lmf

优化后台日志模块bug

parent fa887a26
...@@ -444,8 +444,12 @@ class Processor ...@@ -444,8 +444,12 @@ class Processor
$activity->setRemoteIp($this->remoteAddress->getRemoteAddress()); $activity->setRemoteIp($this->remoteAddress->getRemoteAddress());
$activity->setForwardedIp($this->httpRequest->getServer('HTTP_X_FORWARDED_FOR')); $activity->setForwardedIp($this->httpRequest->getServer('HTTP_X_FORWARDED_FOR'));
$activity->setUserAgent($this->handler->header->getHttpUserAgent()); $activity->setUserAgent($this->handler->header->getHttpUserAgent());
$activity->setModule($this->helper->getActivityModuleName($this->eventConfig['module'])); if ($this->eventConfig['module']){
$activity->setActionType($this->eventConfig['action']); $activity->setModule($this->helper->getActivityModuleName($this->eventConfig['module']));
}
if ($this->eventConfig['action']){
$activity->setActionType($this->eventConfig['action']);
}
$activity->setFullaction($this->escapeString($this->lastAction, '/')); $activity->setFullaction($this->escapeString($this->lastAction, '/'));
$activity->setStoreId(0); $activity->setStoreId(0);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment