Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tax_api
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
data_server
tax_api
Commits
f38dab2e
Commit
f38dab2e
authored
Mar 15, 2019
by
何娜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Delete MongoIO.js
parent
c228d467
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
48 deletions
+0
-48
MongoIO.js
services/MongoIO.js
+0
-48
No files found.
services/MongoIO.js
deleted
100644 → 0
View file @
c228d467
const
request
=
require
(
'request'
);
const
config
=
require
(
'../config'
);
const
StorageHost
=
config
.
StorageHost
;
const
setStorageUrl
=
StorageHost
+
'/data'
,
getStorageUrl
=
StorageHost
+
'/IncomeTax/'
;
exports
.
dataStorage
=
(
params
)
=>
{
return
new
Promise
(
function
(
resolve
,
reject
)
{
let
options
=
{
url
:
setStorageUrl
,
method
:
'POST'
,
json
:
true
,
body
:
params
,
headers
:
{
'content-type'
:
'application/json'
}
};
request
(
options
,
(
e
,
r
,
b
)
=>
{
if
(
e
)
{
return
resolve
({
code
:
-
1
,
msg
:
'数据库服务器出错'
});
}
else
{
return
resolve
(
b
);
}
});
});
};
exports
.
readData
=
(
orderSn
)
=>
{
return
new
Promise
(
function
(
resolve
,
reject
)
{
let
url
=
getStorageUrl
+
orderSn
;
let
options
=
{
url
:
url
,
gzip
:
true
};
request
(
options
,
(
e
,
r
,
b
)
=>
{
if
(
e
)
{
return
resolve
({
code
:
-
1
,
msg
:
'数据库服务器出错'
});
}
else
{
return
resolve
(
b
);
}
});
});
};
\ 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