Commit a967b2f9 by 兰国旗

laolan

parent 622577ac
const system = require("../../../system");
const Dao = require("../../dao.base");
class RotationchartDao extends Dao {
constructor() {
super(Dao.getModelName(RotationchartDao));
}
orderBy() {
return [["sequence","DESC"],["created_at", "DESC"]];
}
}
module.exports = RotationchartDao;
......@@ -13,7 +13,7 @@ class CycleproductService extends ServiceBase {
if (!pobj.jump_link_type) {
return system.getResultFail(-104, "连接不能为空");
}
if (pobj.pic_describe && pobj.pic_describe.length > 19) {
if (pobj.pic_describe && pobj.pic_describe.length > 20) {
return system.getResultFail(-105, "图片描述最多20位字符");
}
return system.getResultSuccess(this.dao.update(pobj));
......
......@@ -14,7 +14,7 @@ class PopularrecommendationService extends ServiceBase {
if (!pobj.jump_link_type) {
return system.getResultFail(-104, "连接不能为空");
}
if (pobj.pic_describe && pobj.pic_describe.length > 19) {
if (pobj.pic_describe && pobj.pic_describe.length > 20) {
return system.getResultFail(-105, "图片描述最多20位字符");
}
return system.getResultSuccess(this.dao.update(pobj));
......
......@@ -22,7 +22,7 @@ class RotationchartService extends ServiceBase {
if (!pobj.jump_link_type) {
return system.getResultFail(-104, "连接不能为空");
}
if (pobj.name && pobj.name.length > 19) {
if (pobj.name && pobj.name.length > 20) {
return system.getResultFail(-105, "图片名称最多20位字符");
}
if (pobj.id !== 1) {
......@@ -44,7 +44,7 @@ class RotationchartService extends ServiceBase {
if (!pobj.jump_link_type) {
return system.getResultFail(-104, "连接不能为空");
}
if (pobj.name && pobj.name.length > 19) {
if (pobj.name && pobj.name.length > 20) {
return system.getResultFail(-105, "图片名称最多20位字符");
}
if (pobj.id !== 1) {
......
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