diff --git a/bin/pages.js b/bin/pages.js index 43bea0a..9801a4f 100644 --- a/bin/pages.js +++ b/bin/pages.js @@ -18,9 +18,9 @@ const getFileInfo = (app, file) => { } const saveApps = app => { if (app.list.length > 0) { - axios.post("http://dvcp.sinoecare.net/node/wechatapps/addOrUpdate", app).then(res => { - if (res?.code == 0) chalkTag.done("产品库目录已同步至后台数据库...") - }).catch(() => 0).finally(() => fsExtra.outputJson('src/config.json', {apps: app.list})) + axios.post("http://192.168.1.87:12525/node/wechatapps/addOrUpdate", app).then(res => { + if (res?.data?.code == 0) chalkTag.done("产品库目录已同步至后台数据库...") + }).catch(err => 0).finally(() => fsExtra.outputJson('src/config.json', {apps: app.list})) } } const start = () => {