Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
system
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
_site-res
system
Commits
201794d3
Commit
201794d3
authored
May 09, 2018
by
tufengqi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
版本号各个环境兼容修复
parent
44d01086
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
CookieEdit.php
classes/fpf/yii_component/views/CookieEdit.php
+3
-4
No files found.
classes/fpf/yii_component/views/CookieEdit.php
View file @
201794d3
...
@@ -164,8 +164,9 @@ $(".submit_cookie").on("click",function(){
...
@@ -164,8 +164,9 @@ $(".submit_cookie").on("click",function(){
var
wpoInfo
=
{
var
wpoInfo
=
{
"fpf-version"
:
xhr
.
getResponseHeader
(
'fpf-version'
),
"fpf-version"
:
xhr
.
getResponseHeader
(
'fpf-version'
),
};
};
// 在这里,做想做的事。。。
if
(
"local"
==
wpoInfo
[
'fpf-version'
]
||
!
wpoInfo
[
'fpf-version'
]){
if
(
wpoInfo
[
'fpf-version'
]){
$
(
".notice_box span"
).
html
(
"您当前处于本地开发环境,无版本目录"
);
}
else
if
(
wpoInfo
[
'fpf-version'
]){
var
str
=
wpoInfo
[
'fpf-version'
];
var
str
=
wpoInfo
[
'fpf-version'
];
var
patt
=
/
(
file|cookie
)
-
([
a-zA-Z0-9-
]
+
)
/
;
var
patt
=
/
(
file|cookie
)
-
([
a-zA-Z0-9-
]
+
)
/
;
var
result
;
var
result
;
...
@@ -186,8 +187,6 @@ $(".submit_cookie").on("click",function(){
...
@@ -186,8 +187,6 @@ $(".submit_cookie").on("click",function(){
}
else
{
}
else
{
$
(
".notice_box span"
).
html
(
"未知的版本类型:"
+
str
);
$
(
".notice_box span"
).
html
(
"未知的版本类型:"
+
str
);
}
}
}
else
{
$
(
".notice_box span"
).
html
(
"您当前处于本地开发环境,无版本目录"
);
}
}
}
}
});
});
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment