Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
I
iot-test
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
twb
iot-test
Commits
970243ef
Commit
970243ef
authored
Jan 09, 2020
by
汤文兵
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
请求路径改为/iot/test/pub
parent
2b5c0685
Pipeline
#750
passed with stage
in 30 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
config.js
+1
-1
src/public/Public.js
+1
-1
No files found.
config.js
View file @
970243ef
...
...
@@ -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'
,
...
...
src/public/Public.js
View file @
970243ef
...
...
@@ -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
=
{
...
...
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