q-koa 12.4.4 → 12.4.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -110,9 +110,9 @@ exports.oss_upload = async (ctx) => {
110
110
  let imageData
111
111
  if (ctx.request.files && ctx.request.files.file) {
112
112
  const { file } = ctx.request.files
113
- fileName = `${
114
- String(new Date().getTime()).split('').reverse().join('') + Math.random()
115
- }.${file.name.split('.')[file.name.split('.').length - 1]}`
113
+ fileName = `${String(
114
+ new Date().getYear() + new Date().getMonth() + Math.random()
115
+ )}.${file.name.split('.')[file.name.split('.').length - 1]}`
116
116
  imageData = file.path
117
117
  } else {
118
118
  const { url: imageUrl, filename: imageFileName } = ctx.request.body
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "q-koa",
3
- "version": "12.4.4",
3
+ "version": "12.4.5",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {