用时间+用户昵称当文件名字
var myDate = new Date();
var myYear = myDate.getYear();
var myMonth = myDate.getMonth();
var myHour = myDate.getHours();
var myMinute = myDate.getMinutes();
var mySecond = myDate.getSeconds();
console.log(app.globalData.userInfo)
var nickName = app.globalData.userInfo.nickName;
const cloudPath = ‘’ + myYear + myMonth + myHour + myMinute + mySecond + nickName + filePath.match(/\.[^.]+?$/)[0];