|
@@ -218,8 +218,8 @@ public class MonitoringServiceImpl implements IMonitoringService {
|
218
|
218
|
queryMap.put("appKey", tpEquipment.getAppkey());
|
219
|
219
|
queryMap.put("appSecret", tpEquipment.getSecret());
|
220
|
220
|
try {
|
221
|
|
- String result = OkHttpRequestUtils.doGet(yinShiProperties.getVideoTokenUrl(), queryMap);
|
222
|
|
- JSONObject jsonObject = JSONObject.parseObject(result);
|
|
221
|
+ String result = OkHttpRequestUtils.doPost(yinShiProperties.getVideoTokenUrl(), queryMap);
|
|
222
|
+ JSONObject jsonObject = JSONObject.parseObject(result).getJSONObject("data");
|
223
|
223
|
tpEquipment.setOpUserUuid(jsonObject.getString("accessToken"));
|
224
|
224
|
tpEquipment.setUnitUuids(String.valueOf(jsonObject.getLong("expireTime")));
|
225
|
225
|
tpEquipmentMapper.updateByPrimaryKeySelective(tpEquipment);
|