Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import {
MESSAGE,
validate,
JiGuangPush,
NLP_ID,
NLP_SECRET
} from '../config'
import { wechatContentCheck, wechatImgCheck } from '../utils'
import Promise from 'Promise'
const tencentcloud = require('tencentcloud-sdk-nodejs')
const NlpClient = tencentcloud.nlp.v20190408.Client
const models = tencentcloud.nlp.v20190408.Models
const Credential = tencentcloud.common.Credential
const ClientProfile = tencentcloud.common.ClientProfile
const HttpProfile = tencentcloud.common.HttpProfile
const router = express.Router()
/* notes/publish
* 该接口弃用,仅用于兼容2.0.8以下版本(20180726)
*/
router.post('/publish', (req, res) => {
const {
uid,
token,
import {
MESSAGE,
validate,
JiGuangPush,
NLP_ID,
NLP_SECRET
} from '../config'
import { wechatContentCheck, wechatImgCheck } from '../utils'
import Promise from 'Promise'
const tencentcloud = require('tencentcloud-sdk-nodejs')
const NlpClient = tencentcloud.nlp.v20190408.Client
const models = tencentcloud.nlp.v20190408.Models
const Credential = tencentcloud.common.Credential
const ClientProfile = tencentcloud.common.ClientProfile
const HttpProfile = tencentcloud.common.HttpProfile
const router = express.Router()
/* notes/publish
* 该接口弃用,仅用于兼容2.0.8以下版本(20180726)
*/
router.post('/publish', (req, res) => {
const {
uid,
token,
timestamp,