Commit 836e5946 by 兰国旗

laolan

parent bed41b79
...@@ -9,6 +9,7 @@ class RotationchartService extends ServiceBase { ...@@ -9,6 +9,7 @@ class RotationchartService extends ServiceBase {
async create(pobj) { async create(pobj) {
let code = await this.getBusUid("mmc"); let code = await this.getBusUid("mmc");
pobj.code = code; pobj.code = code;
pobj.pic_type = "2";
if (!pobj.code) { if (!pobj.code) {
return system.getResultFail(-101, "编码不能为空"); return system.getResultFail(-101, "编码不能为空");
} }
...@@ -40,10 +41,7 @@ class RotationchartService extends ServiceBase { ...@@ -40,10 +41,7 @@ class RotationchartService extends ServiceBase {
if (!pobj.name) { if (!pobj.name) {
pobj.name = res.name; pobj.name = res.name;
} }
if (!pobj.pic_type && !pobj.pic_type_name) {
pobj.pic_type = 2;
pobj.pic_type_name = "首页轮播图";
}
return system.getResultSuccess(this.dao.update(pobj)); return system.getResultSuccess(this.dao.update(pobj));
} }
} }
......
...@@ -7,8 +7,6 @@ class SecondlevelneedconfigService extends ServiceBase { ...@@ -7,8 +7,6 @@ class SecondlevelneedconfigService extends ServiceBase {
} }
async update(pobj) { async update(pobj) {
let code = await this.getBusUid("mmc");
pobj.code = code;
if (!pobj.code) { if (!pobj.code) {
return system.getResultFail(-101, "编码不能为空"); return system.getResultFail(-101, "编码不能为空");
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment