Commit 6e6104d4 authored by 赵啸非's avatar 赵啸非

添加皮肤同步

parent 83ff9217
...@@ -18,7 +18,8 @@ module.exports = { ...@@ -18,7 +18,8 @@ module.exports = {
proxy: { proxy: {
"/infopublish": { "/infopublish": {
//target: "http://test.office.com:11078", //target: "http://test.office.com:11078",
target: 'http://8.136.255.30:1061', //target: 'http://8.136.255.30:1061',
target: 'http://192.168.0.252:1061',
changeOrigin: true, changeOrigin: true,
secure: false, secure: false,
cookieDomainRewrite: "localhost", cookieDomainRewrite: "localhost",
......
...@@ -77,17 +77,14 @@ public class SkinController extends BaseCRUDJsonBodyMappingController<SkinServic ...@@ -77,17 +77,14 @@ public class SkinController extends BaseCRUDJsonBodyMappingController<SkinServic
if (ObjectUtils.isEmpty(skinEntity)) { if (ObjectUtils.isEmpty(skinEntity)) {
throw new AppException("当前皮肤不存在!skinId:" + entity.getId()); throw new AppException("当前皮肤不存在!skinId:" + entity.getId());
} }
if(skinEntity.getUsed()==entity.getUsed()&&skinEntity.getUsed()==YesNoEnum.YES.getValue()){ if(skinEntity.getUsed()==entity.getUsed()&&skinEntity.getUsed()==YesNoEnum.YES.getValue()){
throw new AppException("当前皮肤不能取消选择!" ); throw new AppException("当前皮肤不能取消选择!" );
} }
if (skinEntity.getUsed() == YesNoEnum.YES.getValue()) { if (skinEntity.getUsed() == YesNoEnum.YES.getValue()) {
throw new AppException("当前皮肤使用中!"); throw new AppException("当前皮肤使用中!");
} }
Rest<Void> usedRest = this.service.appUsed(skinEntity, getContext()); Rest<Void> usedRest = this.service.appUsed(skinEntity, getContext());
recordSysLog(request, busiDesc + " 【成功】"); recordSysLog(request, busiDesc + " 【成功】");
} catch (Exception e) { } catch (Exception e) {
log.error("皮肤切换", e); log.error("皮肤切换", e);
return Rest.fail(super.convertException(e)); return Rest.fail(super.convertException(e));
......
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