Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
courier
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
张宇
courier
Commits
118978e2
Commit
118978e2
authored
Feb 11, 2020
by
张宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[M]修改配置
parent
bfd1b22c
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
4 deletions
+2
-4
app_conf.xml
app_conf.xml
+0
-1
courier_views.py
message/courier_views.py
+2
-3
No files found.
app_conf.xml
View file @
118978e2
...
...
@@ -4,7 +4,6 @@
<config
name=
"application_name"
value=
"courier"
/>
<config
name=
"service_list"
>
<element
value=
"courier"
/>
<element
value=
"message"
/>
</config>
<config
name=
"initializer_list"
>
<element
value=
"courier.management_interface.initialize:initialize"
/>
...
...
message/courier_views.py
View file @
118978e2
...
...
@@ -9,5 +9,4 @@ from rpc_framework.interceptors import SessionUserInterceptor
@rpc_view
(
'courier/test_user'
)
@interceptor_classes
([
SessionUserInterceptor
])
def
test_user
(
context
:
RPCViewContext
)
->
Dict
:
print
(
context
.
user
.
id
)
return
{}
\ No newline at end of file
return
{
'user_id'
:
context
.
user
.
id
}
\ No newline at end of file
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