refactor: update workflow
This commit is contained in:
@@ -5734,7 +5734,7 @@
|
||||
"user_id": "1028766474441803",
|
||||
"sec_uid": "MS4wLjABAAAAonK7FndgFYn4mKBQwHc34iEiCCwvBI3tXNqGXqd18qFM9p_ZSxC1y9Gyv1e0XuG_",
|
||||
"short_user_id": "3643612610",
|
||||
"user_unique_id": "LL991221.z",
|
||||
"user_unique_id": "LL991221",
|
||||
"user_signature": "🧣我才是岚岚s\nX Eva: 我才是岚岚\n仅此一个抖音号(谨防被骗)",
|
||||
"nickname": "我才是岚岚",
|
||||
"avatar": "https://p3-pc.douyinpic.com/aweme/720x720/aweme-avatar/tos-cn-avt-0015_78ecf820d31560e298e32684589c00b3.jpeg?from=2956013662",
|
||||
@@ -5954,7 +5954,7 @@
|
||||
"user_id": "1028766474441803",
|
||||
"sec_uid": "MS4wLjABAAAAonK7FndgFYn4mKBQwHc34iEiCCwvBI3tXNqGXqd18qFM9p_ZSxC1y9Gyv1e0XuG_",
|
||||
"short_user_id": "3643612610",
|
||||
"user_unique_id": "LL991221.z",
|
||||
"user_unique_id": "LL991221",
|
||||
"user_signature": "🧣我才是岚岚s\nX Eva: 我才是岚岚\n仅此一个抖音号(谨防被骗)",
|
||||
"nickname": "我才是岚岚",
|
||||
"avatar": "https://p3-pc.douyinpic.com/aweme/720x720/aweme-avatar/tos-cn-avt-0015_78ecf820d31560e298e32684589c00b3.jpeg?from=2956013662",
|
||||
|
||||
33
node/remove-dist-json.js
Normal file
33
node/remove-dist-json.js
Normal file
@@ -0,0 +1,33 @@
|
||||
import fs from 'fs'
|
||||
import path from 'path'
|
||||
|
||||
let read = 'dist/data'
|
||||
|
||||
function deleteFile(url, name) {
|
||||
var files = []
|
||||
|
||||
if (fs.existsSync(url)) {
|
||||
//判断给定的路径是否存在
|
||||
|
||||
files = fs.readdirSync(url) //返回文件和子目录的数组
|
||||
|
||||
files.forEach(function (file) {
|
||||
var curPath = path.join(url, file)
|
||||
|
||||
if (fs.statSync(curPath).isDirectory()) {
|
||||
//同步读取文件夹文件,如果是文件夹,则函数回调
|
||||
deleteFile(curPath, name)
|
||||
} else {
|
||||
if (file.indexOf(name) > -1) {
|
||||
//是指定文件,则删除
|
||||
fs.unlinkSync(curPath)
|
||||
console.log('删除文件:' + curPath)
|
||||
}
|
||||
}
|
||||
})
|
||||
} else {
|
||||
console.log('给定的路径不存在!')
|
||||
}
|
||||
}
|
||||
|
||||
deleteFile(read, '.json')
|
||||
@@ -727,7 +727,7 @@ export const users = [
|
||||
signature: '🧣我才是岚岚s\nX Eva: 我才是岚岚\n仅此一个抖音号(谨防被骗)',
|
||||
total_favorited: 16475958,
|
||||
uid: '1028766474441803',
|
||||
unique_id: 'LL991221.z',
|
||||
unique_id: 'LL991221',
|
||||
user_age: 23,
|
||||
white_cover_url: [
|
||||
{
|
||||
|
||||
@@ -693,7 +693,7 @@
|
||||
"signature": "🧣我才是岚岚s\nX Eva: 我才是岚岚\n仅此一个抖音号(谨防被骗)",
|
||||
"total_favorited": 16475958,
|
||||
"uid": "1028766474441803",
|
||||
"unique_id": "LL991221.z",
|
||||
"unique_id": "LL991221",
|
||||
"user_age": 23,
|
||||
"white_cover_url": [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user