Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYPC
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
2
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Plain Diff
Browse Files
Authored by
yyq
9 years ago
Commit
59f75f82809c9b4852febd003942820486be7ee0
2 parents
73acad6c
851f95fd
Merge branch 'master' of
http://git.dev.yoho.cn/web/yohobuy
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
7 deletions
library/WebPlugin/UdpLog.php
template/www.yohobuy.com/partials/layout/page-header.phtml
library/WebPlugin/UdpLog.php
View file @
59f75f8
...
...
@@ -24,7 +24,7 @@ class UdpLog
//influxdb measurement
public
static
$measurement
=
'php_log'
;
public
static
$filePath
=
'/Data/logs/'
;
public
static
$filePath
=
'/Data/logs/
pc_pay
'
;
const
RECORD_MODE_FILE
=
'FILE'
;
const
RECORD_MODE_UDP
=
'UDP'
;
...
...
@@ -71,7 +71,7 @@ class UdpLog
*/
private
static
function
fileLog
(
$level
,
$message
)
{
$filename
=
$level
.
'.log'
;
//日志文件
$filename
=
$level
.
'-pc-'
.
date
(
'Ymd'
,
time
())
.
'.log'
;
//日志文件
$logFile
=
self
::
createPath
(
self
::
$filePath
,
$filename
);
if
(
!
file_exists
(
self
::
$filePath
))
//判断文件路径是否存在
{
...
...
template/www.yohobuy.com/partials/layout/page-header.phtml
View file @
59f75f8
...
...
@@ -85,7 +85,7 @@
<ul
class=
"sub-nav-list"
>
{
{#
subnav
}
}
<li
class=
"sub-nav-item"
>
<a
href=
"{{link}}"
>
{
{name
}
}
<a
href=
"{{link}}"
>
{
{name
}
}
{
{#if
is_new
}
}
<span
class=
"newlogo"
></span>
{
{/if
}
}
...
...
@@ -137,10 +137,10 @@
</form>
</div>
<div
class=
"gobuy float-left {{gobytype}}"
id=
"miniCartBox"
>
<span
class=
"ic-infomation"
>
0
</span>
<div
class=
"gobuy-wrapper"
></div>
</div>
</div>
</div>
...
...
@@ -268,6 +268,10 @@
</script>
</div>
<input
id=
"api-domain"
type=
"hidden"
value=
"{{apiDomain}}"
>
<script
src=
"{{sysUserSession}}"
></script>
<script
type=
"text/javascript"
>
if
(typeof
call
===
'undefined'
||
typeof
call
!==
'function')
{
function
call()
{
}
}
</script>
<script
async
src=
"{{sysUserSession}}"
></script>
{
{/headerdata
}
}
...
...
Please
register
or
login
to post a comment