Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
杨建斌
/
page
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
1
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
c39daada
authored
2018-04-09 20:56:42 +0800
by
Zelig
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'develop' of
http://g.28ms.com:8000/yangjianbin/page
into develop
2 parents
2cda9b38
ec85d6ee
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
1 deletions
.gitignore
application/config/config.php
application/views/common/header.php
.gitignore
View file @
c39daad
.idea
.DS_Store
public/sess_save_path/
...
...
application/config/config.php
View file @
c39daad
...
...
@@ -380,7 +380,7 @@ $config['encryption_key'] = '';
$config
[
'sess_driver'
]
=
'files'
;
$config
[
'sess_cookie_name'
]
=
'ci_session'
;
$config
[
'sess_expiration'
]
=
7200
;
$config
[
'sess_save_path'
]
=
NULL
;
$config
[
'sess_save_path'
]
=
FCPATH
.
'public/sess_save_path'
;
;
$config
[
'sess_match_ip'
]
=
FALSE
;
$config
[
'sess_time_to_update'
]
=
300
;
$config
[
'sess_regenerate_destroy'
]
=
FALSE
;
...
...
application/views/common/header.php
View file @
c39daad
...
...
@@ -30,4 +30,24 @@
// var apiBaseUrl = "http://192.168.11.60:8082/";
</script>
<!-- js cookie -->
<script
src=
"https://cdn.jsdelivr.net/npm/js-cookie@2/src/js.cookie.min.js"
></script>
<script
type=
"application/javascript"
>
$
.
ajax
({
type
:
'put'
,
url
:
apiBaseUrl
+
'system/user/loginUser'
,
cache
:
false
,
data
:
JSON
.
stringify
(
data
),
dataType
:
'json'
,
contentType
:
"application/json; charset=UTF-8"
,
success
:
function
(
data
){
},
error
:
function
(){
layer
.
alert
(
"操作失败"
)
}
})
Cookies
.
set
(
'name'
,
{
foo
:
'bar'
});
var
test
=
Cookies
.
get
(
'name'
);
console
.
log
(
apiBaseUrl
);
</script>
</head>
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
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 post a comment