|
@@ -9,6 +9,7 @@ import com.adi.common.core.redis.RedisCache;
|
|
|
import com.adi.config.AiroptHttpConfig;
|
|
|
import com.adi.util.HttpUtils;
|
|
|
import com.alibaba.fastjson2.JSONObject;
|
|
|
+import com.mysql.cj.util.StringUtils;
|
|
|
import org.apache.http.HttpResponse;
|
|
|
import org.apache.http.util.EntityUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
@@ -37,6 +38,7 @@ public class UserController extends BaseController {
|
|
|
*/
|
|
|
@RequestMapping("/online")
|
|
|
public AjaxResult online() throws IOException
|
|
|
+
|
|
|
{
|
|
|
Collection<String> keys = redisCache.keys(airConfig.getUserKeyPre() + "*");
|
|
|
Map<String, Object> result = new HashMap<>(2);
|
|
@@ -94,7 +96,10 @@ public class UserController extends BaseController {
|
|
|
bodys.put("clientToken",airConfig.getClientToken());
|
|
|
bodys.put("transCode","B00030");
|
|
|
bodys.put("userId",airConfig.getUserId());
|
|
|
- bodys.put("searchtag",searchtag);
|
|
|
+ if(!StringUtils.isNullOrEmpty(searchtag)){
|
|
|
+ bodys.put("searchtag",searchtag);
|
|
|
+ }
|
|
|
+
|
|
|
bodys.put("count", pageSize.toString());
|
|
|
bodys.put("page",pageNum.toString());
|
|
|
try {
|