package com.panzhihua.service_community.util; import com.alibaba.fastjson.JSONObject; import com.panzhihua.common.model.vos.R; import lombok.extern.slf4j.Slf4j; import org.springframework.stereotype.Service; import static com.panzhihua.common.utlis.HttpClientUtil.httpGet; @Slf4j @Service public class UnionDoorUtil { /** * 刷新token * * @return token * @throws Exception */ public R refreshToken(String qRCode,String phone) throws Exception { String url = "https://userinner.pzhszgh.cn/unionOutdoor/unionUser/openDoorByPhone?qRCode+"+qRCode+"&phone="+phone; return JSONObject.parseObject(httpGet(url, null), R.class); } }