一、引入七牛SDK
具体查看文档
https://github.com/gpake/qiniu-wxapp-sdk/blob/master/README.md
二、封装上传方法upload.js
/**
* 上传函数
*/
const qiniuUploader = require(qiniuUploader);
const request = require(./request.js)
// 初始化七牛相关参数
function initQiniu() {
var options = {
uploadURL: 'https://up.qiniup.com',
1