Commit 9547c678 by zCaesar

delete log

parent 6191b1c3
...@@ -31,7 +31,6 @@ module.exports = function (options = {}) { ...@@ -31,7 +31,6 @@ module.exports = function (options = {}) {
getGroupID(req.body.username, req.body.client_id, (_id) => { // get groupID getGroupID(req.body.username, req.body.client_id, (_id) => { // get groupID
// console.log(_id) // console.log(_id)
var _ftopic = require('./utils/getTopic').getTopic(topic, _id) // get topic where concat with groupID var _ftopic = require('./utils/getTopic').getTopic(topic, _id) // get topic where concat with groupID
console.log(_ftopic)
var response = { var response = {
'result': 'ok', 'result': 'ok',
'modifiers': { 'modifiers': {
......
...@@ -36,7 +36,6 @@ module.exports = function (options = {}) { ...@@ -36,7 +36,6 @@ module.exports = function (options = {}) {
getGroupID(req.body.username, req.body.client_id, (_id) => { // get groupID getGroupID(req.body.username, req.body.client_id, (_id) => { // get groupID
// console.log(_id) // console.log(_id)
var _ftopic = require('./utils/getTopic').getTopic(topic, _id) // get topic where concat with groupID var _ftopic = require('./utils/getTopic').getTopic(topic, _id) // get topic where concat with groupID
console.log(_ftopic)
var _topic = [{ // setTopic for response var _topic = [{ // setTopic for response
'topic': _ftopic, 'topic': _ftopic,
'qos': 0 'qos': 0
......
function getTopic(topic, id) { function getTopic(topic, id) {
console.log(topic)
if (!checkWildCard(topic)) { if (!checkWildCard(topic)) {
var _topic = classifiedTopic(topic) + '/!' + id + topic.split(classifiedTopic(topic))[1] var _topic = classifiedTopic(topic) + '/!' + id + topic.split(classifiedTopic(topic))[1]
return _topic return _topic
......
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