Browse Source

errMsg

master
CODE 1 year ago
parent
commit
0487141045
  1. 3
      api/app/lib/controllers/projectRegime/projectSituation.js

3
api/app/lib/controllers/projectRegime/projectSituation.js

@ -51,13 +51,14 @@ async function projectList(ctx, next) {
async function postAddProject(ctx, next) {
let errMsg = ''
try {
const models = ctx.fs.dc.models;
let userInfo = ctx.fs.api.userInfo;
const data = ctx.request.body;
const { img, longitude, latitude, name, type, describe, subType } = data
let errMsg = data.id ? '结构物编辑失败' : '结构物新增失败'
errMsg = data.id ? '结构物编辑失败' : '结构物新增失败'
let project = { img, longitude, latitude, name, type, describe, userId: userInfo.id, subType }
const alikeProject = await models.Project.findOne({

Loading…
Cancel
Save