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
028064f2
Commit
028064f2
authored
May 22, 2020
by
王勇飞
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'fqboss' of gitlab.gongsibao.com:jiangyong/zhichan into fqboss
parents
689863f6
61578bff
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
0 deletions
+24
-0
fqboss/app/base/utils/aliyunClient.js
+24
-0
No files found.
fqboss/app/base/utils/aliyunClient.js
View file @
028064f2
const
Client
=
require
(
'aliyun-api-gateway'
).
Client
;
// const client = new Client('203727307', 'b6za34qem6k9a3s3jguvh24nc3ridlnh');
const
client
=
new
Client
(
'203732072'
,
'3r0dn583041bco48lq0xgsw09r0hh6ew'
);
// const clientig = new Client('203756805', 'crkyej0xlmqa6bmvqijun6ltxparllyn');//开发
const
clientig
=
new
Client
(
'203763771'
,
'e5e2ytnn6nrkr9qnqk4w5e6z0xlhkznu'
);
//线上
class
aliyunClient
{
constructor
()
{
this
.
aliReqUrl
=
"https://aliapi.gongsibao.com/tm/springboard"
;
...
...
@@ -50,5 +53,26 @@ class aliyunClient {
return
uuid
.
join
(
''
);
}
async
postig
(
aliReqUrl
,
actionBody
)
{
// var reqParam = {};
// reqParam["ActionProcess"] = "AliTm";
// reqParam["ActionType"] = actionType;
// reqParam["ActionBody"] = actionBody;
// if (!actionBody.reqOnlyCode) {
// actionBody["reqOnlyCode"] = await this.getCreateOrderNum();
// }
var
param
=
{
data
:
actionBody
,
timeout
:
20000
,
headers
:
{
accept
:
'application/json'
}
};
console
.
log
(
JSON
.
stringify
(
param
),
"______________峰擎---阿里云参数_______"
);
var
result
=
await
clientig
.
post
(
aliReqUrl
,
param
);
console
.
log
(
JSON
.
stringify
(
result
),
"______________峰擎---阿里云返回结果_______"
);
return
result
;
}
}
module
.
exports
=
aliyunClient
;
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