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