铜仁复制黔西南账号管理

This commit is contained in:
aixianling
2023-02-09 16:10:49 +08:00
parent 609b6edbba
commit 89a7eb3441
3 changed files with 283 additions and 2 deletions

View File

@@ -3,7 +3,7 @@ const {chalkTag, findApp, fs} = require("./tools");
const compiler = require('vue-template-compiler')
const saveApps = app => {
if (app.list.length > 0) {
return axios.post("http://dvcp.sinoecare.net/node/wechatapps/addOrUpdate", app, {timeout: 1000}).then(res => {
return axios.post("http://192.168.1.87:12525/node/wechatapps/addOrUpdate", app, {timeout: 1000}).then(res => {
if (res.data.code == 0) chalkTag.done("产品库目录已同步至后台数据库...")
}).catch(() => 0)
} else return Promise.reject("没有应用")