Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mp_estate_server
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
mp_estate_backstage
mp_estate_server
Commits
8e3c30fd
Commit
8e3c30fd
authored
Sep 04, 2020
by
成旭东
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
69491357
Pipeline
#27926
failed with stage
in 2 minutes 23 seconds
Changes
6
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
11 additions
and
13 deletions
+11
-13
config.default.ts
config/config.default.ts
+6
-6
config.local.ts
config/config.local.ts
+1
-3
application.d.ts
typings/app/extend/application.d.ts
+1
-1
context.d.ts
typings/app/extend/context.d.ts
+1
-1
helper.d.ts
typings/app/extend/helper.d.ts
+1
-1
request.d.ts
typings/app/extend/request.d.ts
+1
-1
No files found.
config/config.default.ts
View file @
8e3c30fd
...
...
@@ -33,14 +33,14 @@ export default (appInfo: { name: string; }) => {
config
.
middleware
=
[
'errorHandler'
,
'pagination'
,
'jwtMiddle'
,
//
'jwtMiddle',
];
config
.
jwtMiddle
=
{
exclude
:
[
'/api/login'
,
],
};
//
config.jwtMiddle = {
//
exclude: [
//
'/api/login',
//
],
//
};
config
.
jwt
=
{
secret
:
'123456'
,
...
...
config/config.local.ts
View file @
8e3c30fd
...
...
@@ -18,10 +18,8 @@ export default () => {
config
.
jwt
=
{
secret
:
'51e69bd6-7fdb-4a76-ac83-0d32b6f09723'
,
exp
:
Math
.
floor
(
Date
.
now
()
/
1000
)
+
config
.
sessionExpireIn
,
// 一周
enable
:
true
,
// default is false
credentialsRequired
:
false
,
match
:
'*'
,
// optional
ignore
:
[
'/api/login'
],
};
config
.
sequelize
=
{
...
...
typings/app/extend/application.d.ts
View file @
8e3c30fd
...
...
@@ -2,7 +2,7 @@
// Do not modify this file!!!!!!!!!
import
'egg'
;
import
ExtendApplication
from
'../../../app/extend/application'
;
import
ExtendApplication
=
require
(
'../../../app/extend/application'
)
;
type
ExtendApplicationType
=
typeof
ExtendApplication
;
declare
module
'egg'
{
interface
Application
extends
ExtendApplicationType
{
}
...
...
typings/app/extend/context.d.ts
View file @
8e3c30fd
...
...
@@ -2,7 +2,7 @@
// Do not modify this file!!!!!!!!!
import
'egg'
;
import
ExtendContext
from
'../../../app/extend/context'
;
import
ExtendContext
=
require
(
'../../../app/extend/context'
)
;
type
ExtendContextType
=
typeof
ExtendContext
;
declare
module
'egg'
{
interface
Context
extends
ExtendContextType
{
}
...
...
typings/app/extend/helper.d.ts
View file @
8e3c30fd
...
...
@@ -2,7 +2,7 @@
// Do not modify this file!!!!!!!!!
import
'egg'
;
import
ExtendIHelper
from
'../../../app/extend/helper'
;
import
ExtendIHelper
=
require
(
'../../../app/extend/helper'
)
;
type
ExtendIHelperType
=
typeof
ExtendIHelper
;
declare
module
'egg'
{
interface
IHelper
extends
ExtendIHelperType
{
}
...
...
typings/app/extend/request.d.ts
View file @
8e3c30fd
...
...
@@ -2,7 +2,7 @@
// Do not modify this file!!!!!!!!!
import
'egg'
;
import
ExtendRequest
from
'../../../app/extend/request'
;
import
ExtendRequest
=
require
(
'../../../app/extend/request'
)
;
type
ExtendRequestType
=
typeof
ExtendRequest
;
declare
module
'egg'
{
interface
Request
extends
ExtendRequestType
{
}
...
...
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