Commit f9b8fc60 by 王栋源

wdy

parent db58ca9c
const Client = require('aliyun-api-gateway').Client;
var RPCClient = require('@alicloud/pop-core').RPCClient;
class aliyunClient {
constructor() {
this.aliclient = new RPCClient({
accessKeyId: "LTAI1pJs7KQizBe2",
accessKeySecret: "MMNibebAPqR9AnX5YWHnSL2tHMSIoL",
endpoint: "https://companyreg.aliyuncs.com",
apiVersion: "2020-03-06"
});
}
async post(aliReqUrl, key, secret, actionBody) {
const client = new Client(key, secret);
......@@ -18,12 +26,6 @@ class aliyunClient {
}
//阿里接口
async reqbyget(obj, cbk) {
const aliclient = new RPCClient({
accessKeyId: "LTAI1pJs7KQizBe2",
accessKeySecret: "MMNibebAPqR9AnX5YWHnSL2tHMSIoL",
endpoint: "https://companyreg.aliyuncs.com",
apiVersion: "2020-03-06"
});
var action = obj.action;
var reqbody = obj.reqbody;
return this.aliclient.request(action, reqbody, {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment