06 2019 档案

摘要:app.all('*', function (req, res, next) { res.set('Access-Control-Allow-Origin', '*'); res.set('Access-Control-Allow-Credentials', true); res.set('Acce 阅读全文
posted @ 2019-06-27 18:42 江山一族 阅读(1882) 评论(1) 推荐(0)
摘要:const fs = require("fs"); const mineType = require("mime-types"); function imgToBase64(url) { try { let imgurl = config.imageUrl; let imageData = fs.r 阅读全文
posted @ 2019-06-25 17:59 江山一族 阅读(3374) 评论(0) 推荐(0)
摘要:{ "button": [ { "name": "音乐", "sub_button": [ { "type": "view", "name": "百度音乐", "url": "http://music.taihe.com/" } ] }, { "type": "view", "name": "百度" 阅读全文
posted @ 2019-06-25 11:17 江山一族 阅读(251) 评论(0) 推荐(0)
摘要:没有wget的话,yum install -y wget wget https://npm.taobao.org/mirrors/node/latest-v11.x/node-v11.4.0-linux-x64.tar.gz #解压在opt目录下 tar zxf node-v11.4.0-linux 阅读全文
posted @ 2019-06-12 08:50 江山一族 阅读(247) 评论(0) 推荐(0)
摘要:const ssh2 = require('ssh2');const fs = require('ssh2-fs');const mineType = require('mime-types');connection = new ssh2();connection.connect({ "host": 阅读全文
posted @ 2019-06-10 17:39 江山一族 阅读(1401) 评论(0) 推荐(0)