|
@@ -100,11 +100,15 @@ const downImg = (url, filepath) => {
|
|
|
|
|
|
|
|
(async () => {
|
|
(async () => {
|
|
|
let num = -1
|
|
let num = -1
|
|
|
|
|
+ const newObj = {}
|
|
|
for (const key in _emojis) {
|
|
for (const key in _emojis) {
|
|
|
const el = _emojis[key]
|
|
const el = _emojis[key]
|
|
|
- console.log(el);
|
|
|
|
|
|
|
+ console.log(key,el);
|
|
|
num++
|
|
num++
|
|
|
const path = process.cwd() + '/emoj/' + num + '.gif'
|
|
const path = process.cwd() + '/emoj/' + num + '.gif'
|
|
|
|
|
+ const v = `<img class='emoji' data-Eid='${key}' src='gif${num}'>`
|
|
|
|
|
+ newObj[key] = v
|
|
|
await downImg(el, path)
|
|
await downImg(el, path)
|
|
|
}
|
|
}
|
|
|
|
|
+ console.log(newObj)
|
|
|
})()
|
|
})()
|