Commit aae26323 authored by 刘凡's avatar 刘凡

Merge remote-tracking branch 'origin/develop_tzs_register' into develop_tzs_register

parents 98220b51 e72fcf0c
......@@ -41,13 +41,15 @@ public class CylinderUnitVideoServiceImpl extends BaseService<CylinderUnitVideoD
private static final String CODE_20001 = "20001";
@Override
public List<String> getUnitVideoUrl(Long unitSeq) {
List<String> result = new ArrayList<String>();
LambdaQueryWrapper<CylinderUnitVideo> wrapper = new LambdaQueryWrapper<>();
wrapper.eq(CylinderUnitVideo::getUnitSeq,unitSeq);
CylinderUnitVideo cylinderUnitVideo = this.getBaseMapper().selectOne(wrapper);
if(null != cylinderUnitVideo){
HashMap<String, Object> requestInfo = new HashMap<>();
requestInfo.put("appKey",cylinderUnitVideo.getAppKey());
requestInfo.put("appSecret",cylinderUnitVideo.getAppSecret());
List<String> result = new ArrayList<String>();
try {
String accessTokenData = HttpUtil.post(cylinderUnitVideo.getTokenUrl(),requestInfo);
JSONObject jsonObject = JSON.parseObject(accessTokenData);
......@@ -92,6 +94,7 @@ public class CylinderUnitVideoServiceImpl extends BaseService<CylinderUnitVideoD
logger.error(e.getMessage());
e.printStackTrace();
}
}
return result;
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment