|
@@ -2,6 +2,7 @@ package org.springblade.wecom.controller;
|
|
|
|
|
|
|
|
|
import cn.hutool.core.net.url.UrlQuery;
|
|
|
+import cn.hutool.core.util.StrUtil;
|
|
|
import cn.hutool.core.util.URLUtil;
|
|
|
import cn.hutool.http.HttpUtil;
|
|
|
import com.alibaba.fastjson.JSONArray;
|
|
@@ -503,7 +504,7 @@ public class WeComController {
|
|
|
String format = simple.format(new Date());
|
|
|
log.info("qywx res jsonObject = " + jsonObject + "time = " + format);
|
|
|
if (Objects.nonNull(jsonObject.get("errcode")) && jsonObject.getInteger("errcode") == 0) {
|
|
|
- String userid = jsonObject.getString("userid");
|
|
|
+ String userid = StrUtil.isNotEmpty(jsonObject.getString("userid")) ?jsonObject.getString("userid"):jsonObject.getString("UserId");
|
|
|
log.info("qywx userid = " + userid + "time = " + format);
|
|
|
BladeUser bladeUser = bladeUserService.getOne(new LambdaQueryWrapper<BladeUser>()
|
|
|
.eq(BladeUser::getThirdUserId, userid)
|