c39daada by Zelig

Merge branch 'develop' of http://g.28ms.com:8000/yangjianbin/page into develop

2 parents 2cda9b38 ec85d6ee
1 .idea 1 .idea
2 .DS_Store 2 .DS_Store
3 public/sess_save_path/
......
...@@ -380,7 +380,7 @@ $config['encryption_key'] = ''; ...@@ -380,7 +380,7 @@ $config['encryption_key'] = '';
380 $config['sess_driver'] = 'files'; 380 $config['sess_driver'] = 'files';
381 $config['sess_cookie_name'] = 'ci_session'; 381 $config['sess_cookie_name'] = 'ci_session';
382 $config['sess_expiration'] = 7200; 382 $config['sess_expiration'] = 7200;
383 $config['sess_save_path'] = NULL; 383 $config['sess_save_path'] = FCPATH.'public/sess_save_path';;
384 $config['sess_match_ip'] = FALSE; 384 $config['sess_match_ip'] = FALSE;
385 $config['sess_time_to_update'] = 300; 385 $config['sess_time_to_update'] = 300;
386 $config['sess_regenerate_destroy'] = FALSE; 386 $config['sess_regenerate_destroy'] = FALSE;
......
...@@ -30,4 +30,24 @@ ...@@ -30,4 +30,24 @@
30 // var apiBaseUrl = "http://192.168.11.60:8082/"; 30 // var apiBaseUrl = "http://192.168.11.60:8082/";
31 31
32 </script> 32 </script>
33 <!-- js cookie -->
34 <script src="https://cdn.jsdelivr.net/npm/js-cookie@2/src/js.cookie.min.js"></script>
35 <script type="application/javascript">
36 $.ajax({
37 type:'put',
38 url:apiBaseUrl + 'system/user/loginUser',
39 cache: false,
40 data:JSON.stringify(data),
41 dataType:'json',
42 contentType: "application/json; charset=UTF-8",
43 success:function(data){
44 },
45 error:function(){
46 layer.alert("操作失败")
47 }
48 })
49 Cookies.set('name', { foo: 'bar' });
50 var test = Cookies.get('name');
51 console.log(apiBaseUrl);
52 </script>
33 </head> 53 </head>
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!