Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Z
zhichan
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
蒋勇
zhichan
Commits
b0542edd
Commit
b0542edd
authored
Jul 17, 2020
by
linboxuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ucommune-back operate api
parent
344da171
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
7 deletions
+4
-7
ucommune-back/app/base/service/impl/backUtilsSve/utilsUcommuneSve.js
+3
-6
ucommune-back/app/config/environment.js
+1
-1
No files found.
ucommune-back/app/base/service/impl/backUtilsSve/utilsUcommuneSve.js
View file @
b0542edd
...
@@ -32,12 +32,9 @@ class UtilsUcommuneService extends AppServiceBase {
...
@@ -32,12 +32,9 @@ class UtilsUcommuneService extends AppServiceBase {
* @param {*} actionBody
* @param {*} actionBody
*/
*/
async
getTrend
(
pobj
,
actionBody
)
{
async
getTrend
(
pobj
,
actionBody
)
{
var
obj
=
{
var
reqUrl
=
this
.
centerOrderUrl
+
"action/ucommuneOrder/springBoard"
;
date
:
[
"1"
],
var
result
=
await
this
.
restPostUrl
(
pobj
,
reqUrl
);
pay
:
[
0
,
1
,
2
,
3
,
4
,
5
,
6
,
7
,
8
,
9
,
0
,
1
,
2
],
return
result
;
need
:
[
0
,
1
,
2
,
3
,
4
,
5
,
6
,
7
,
8
,
9
,
0
,
1
,
2
]
}
return
system
.
getResultSuccess
(
obj
);
}
}
/**
/**
...
...
ucommune-back/app/config/environment.js
View file @
b0542edd
...
@@ -27,7 +27,7 @@ module.exports = function (app) {
...
@@ -27,7 +27,7 @@ module.exports = function (app) {
app
.
all
(
'*'
,
function
(
req
,
res
,
next
)
{
app
.
all
(
'*'
,
function
(
req
,
res
,
next
)
{
req
.
objs
=
system
;
req
.
objs
=
system
;
res
.
header
(
'Access-Control-Allow-Origin'
,
'*'
);
res
.
header
(
'Access-Control-Allow-Origin'
,
'*'
);
res
.
header
(
'Access-Control-Allow-Headers'
,
'Content-Type, Content-Length, Authorization, Accept, X-Requested-With , yourHeaderFeild'
);
res
.
header
(
'Access-Control-Allow-Headers'
,
'Content-Type, Content-Length, Authorization, Accept, X-Requested-With , yourHeaderFeild
, Authorization, XAPPKEY, XFROMAPPKEY, XFROMCOMPANYKEY, XREGROLE, XBIZPATH
'
);
res
.
header
(
'Access-Control-Allow-Methods'
,
'PUT, POST, GET, DELETE, OPTIONS'
);
res
.
header
(
'Access-Control-Allow-Methods'
,
'PUT, POST, GET, DELETE, OPTIONS'
);
// res.header('Access-Control-Allow-Credentials', 'true');
// res.header('Access-Control-Allow-Credentials', 'true');
res
.
header
(
'content-type'
,
'text/html;charset=UTF-8'
);
res
.
header
(
'content-type'
,
'text/html;charset=UTF-8'
);
...
...
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