Commit 970243ef by 汤文兵

请求路径改为/iot/test/pub

parent 2b5c0685
Pipeline #750 passed with stage
in 30 seconds
......@@ -3,7 +3,7 @@ module.exports = {
port: 3000,
provider: require(path.resolve('src','Provider.js')),
needLog: false,
customUrl: 'iot/ali',
customUrl: 'iot/test',
componentName: 'openapi-test',
communications:[
'HTTPCOM',
......
......@@ -4,7 +4,7 @@ const aliClient = require('../Util/aliClient');
class Public extends PublicFunBase{
async test(data){
async pub(data){
this.checkKeyExists(data.params,"ProductKey","DeviceName","MessageContent");
let MessageContent = Buffer.from(data.params.MessageContent).toString('base64');
let params = {
......
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