|
@@ -89,17 +89,17 @@ public class CommonLogic {
|
|
|
token = request.getParameter("x-token");
|
|
|
}
|
|
|
|
|
|
- if (StringUtils.isBlank(device) && StringUtils.isBlank(appid)) {
|
|
|
- throw new RemoteServiceException("非法请求,缺少必须的参数");
|
|
|
- }
|
|
|
+// if (StringUtils.isBlank(device) && StringUtils.isBlank(appid)) {
|
|
|
+// throw new RemoteServiceException("非法请求,缺少必须的参数");
|
|
|
+// }
|
|
|
// log.info("打印token:"+token);
|
|
|
AdminCompanyWechat adminCompanyWechat;
|
|
|
User user = null;
|
|
|
if (StringUtils.isBlank(device)) {
|
|
|
adminCompanyWechat = adminCompanyWechatService.lambdaQuery()
|
|
|
.eq(AdminCompanyWechat::getSubAppId, appid)
|
|
|
-// .or()
|
|
|
-// .eq(AdminCompanyWechat::getPubAppId,appid)
|
|
|
+ .or()
|
|
|
+ .eq(AdminCompanyWechat::getPubAppId,appid)
|
|
|
.one();
|
|
|
if (adminCompanyWechat == null) {
|
|
|
throw new RemoteServiceException("非法请求,请联系管理员配置必要的参数:" + appid);
|