|
|
|
@@ -342,11 +342,12 @@ public class WxProjectConfigController extends BaseController { |
|
|
|
if(byId == null){ |
|
|
|
return new ResultData(ErrorCode.SYS_PARAMETER_ERROR.getCode(),"未找到小程序"); |
|
|
|
} |
|
|
|
if(!EnumAppType.B.getCode().equals(byId.getType()) || !EnumAppType.C.getCode().equals(byId.getType())){ |
|
|
|
if(!EnumAppType.B.getCode().equals(byId.getType()) && !EnumAppType.C.getCode().equals(byId.getType())){ |
|
|
|
return new ResultData(ErrorCode.SYS_PARAMETER_ERROR.getCode(),"小程序类型不支持"); |
|
|
|
} |
|
|
|
if(wxAppinfo.getEnable() == null || !EnumEnableType.Enable.getCode().equals(wxAppinfo.getEnable()) || |
|
|
|
!EnumEnableType.Disable.getCode().equals(wxAppinfo.getEnable())){ |
|
|
|
if(wxAppinfo.getEnable() == null || |
|
|
|
(!EnumEnableType.Enable.getCode().equals(wxAppinfo.getEnable()) && |
|
|
|
!EnumEnableType.Disable.getCode().equals(wxAppinfo.getEnable()))){ |
|
|
|
return new ResultData(ErrorCode.SYS_PARAMETER_ERROR.getCode(),"参数enable 不合法"); |
|
|
|
} |
|
|
|
WxAppinfo updAppinfo = new WxAppinfo(); |
|
|
|
|