Parcourir la source

Merge branch 'develop' of gitadmin/tuoheng_freeway into release

tags/V1.3.3
wanjing il y a 1 an
Parent
révision
55e3f1ea62
6 fichiers modifiés avec 19 ajouts et 13 suppressions
  1. +12
    -7
      tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/constant/SystemConstant.java
  2. +2
    -1
      tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/index/IndexServiceImpl.java
  3. +1
    -1
      tuoheng-service/tuoheng-admin/src/main/resources/application-prod.yml
  4. +2
    -2
      tuoheng-service/tuoheng-miniprogram/src/main/java/com/tuoheng/miniprogram/service/impl/AirportServiceImpl.java
  5. +1
    -1
      tuoheng-service/tuoheng-miniprogram/src/main/resources/application-prod.yml
  6. +1
    -1
      tuoheng-service/tuoheng-miniprogram/src/main/resources/application-test.yml

+ 12
- 7
tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/constant/SystemConstant.java Voir le fichier

/** /**
* 机场平台:获取机场列表接口 * 机场平台:获取机场列表接口
*/ */
String API_AIRPORT_LIST = "/api/airportInterface/airportList";
String API_AIRPORT_LIST = "/airportInterface/airportList";


/** /**
* 机场平台:获取机场路线列表接口 * 机场平台:获取机场路线列表接口
*/ */
String API_AIRPORT_LINE_LIST = "/api/airportInterface/taskByDroneId";
String API_AIRPORT_LINE_LIST = "/airportInterface/taskByDroneId";


/** /**
* 机场平台:执行接口 * 机场平台:执行接口
*/ */
String API_AIRPORT_EXECUTE_TASK = "/api/airportInterface/executeTaskAnsy";
String API_AIRPORT_EXECUTE_TASK = "/airportInterface/executeTaskAnsy";


/** /**
* 机场平台:定点飞行 * 机场平台:定点飞行
*/ */
String API_AIRPORT_POINT_FLIGH = "/api/airportInterface/createPointLine";
String API_AIRPORT_POINT_FLIGH = "/airportInterface/createPointLine";


/** /**
* 机场平台:获取天气 * 机场平台:获取天气
*/ */
String API_AIRPORT_GET_WEATHER = "/api/airportInterface/getWeather";
String API_AIRPORT_GET_WEATHER = "/airportInterface/getWeather";


/** /**
* 机场平台:控制无人机 * 机场平台:控制无人机
*/ */
String API_AIRPORT_DRONE_CONTROL = "/api/airportInterface/droneCommand";
String API_AIRPORT_DRONE_CONTROL = "/airportInterface/droneCommand";


/** /**
* 机场平台:获取机场状态 * 机场平台:获取机场状态
*/ */
String API_AIRPORT_STATUS_BY_AIRPORT_ID = "/api/airportInterface/getAirportStatusByAirportId";
String API_AIRPORT_STATUS = "/airportInterface/getAirportStatus";

/**
* 机场平台:获取机场状态
*/
String API_AIRPORT_STATUS_BY_AIRPORT_ID = "/airportInterface/getAirportStatusByAirportId";


// 飞手平台不同接口url // 飞手平台不同接口url
/** /**

+ 2
- 1
tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/index/IndexServiceImpl.java Voir le fichier

import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.JSONObject;
import com.google.gson.JsonObject; import com.google.gson.JsonObject;
import com.tuoheng.admin.constant.SystemConstant;
import com.tuoheng.admin.vo.AirportMsgVo; import com.tuoheng.admin.vo.AirportMsgVo;
import com.tuoheng.common.core.config.common.CommonConfig; import com.tuoheng.common.core.config.common.CommonConfig;
import com.tuoheng.common.core.utils.HttpUtils; import com.tuoheng.common.core.utils.HttpUtils;


@Override @Override
public JsonResult getAirportMsg(Integer airportId) { public JsonResult getAirportMsg(Integer airportId) {
String url = CommonConfig.airportURL + "/api/airportInterface/getAirportStatus";
String url = CommonConfig.airportURL + SystemConstant.API_AIRPORT_STATUS;
String param = "airportId=" + airportId; String param = "airportId=" + airportId;
String result = HttpUtils.sendGet(url, param); String result = HttpUtils.sendGet(url, param);
JsonResult jsonResult = JacksonUtil.json2pojo(result, JsonResult.class); JsonResult jsonResult = JacksonUtil.json2pojo(result, JsonResult.class);

+ 1
- 1
tuoheng-service/tuoheng-admin/src/main/resources/application-prod.yml Voir le fichier

#飞手平台地址 #飞手平台地址
pilot-url: https://pilot.t-aaron.com/pilot/web/ pilot-url: https://pilot.t-aaron.com/pilot/web/
#airport配置地址 #airport配置地址
airport-url: https://airport.t-aaron.com/api
airport-url: https://airport.t-aaron.com/airport/admin
# 文件配置 # 文件配置
uploads: uploads:
#上传的服务器上的映射文件夹 #上传的服务器上的映射文件夹

+ 2
- 2
tuoheng-service/tuoheng-miniprogram/src/main/java/com/tuoheng/miniprogram/service/impl/AirportServiceImpl.java Voir le fichier

@Service @Service
public class AirportServiceImpl implements AirportService { public class AirportServiceImpl implements AirportService {


private final static String API_AIRPORT_LIST = "/api/airportInterface/airportList";
private final static String API_AIRPORT_LINE_LIST = "/api/airportInterface/taskByDroneId";
private final static String API_AIRPORT_LIST = "/airportInterface/airportList";
private final static String API_AIRPORT_LINE_LIST = "/airportInterface/taskByDroneId";


@Autowired @Autowired
private TenantMapper tenantMapper; private TenantMapper tenantMapper;

+ 1
- 1
tuoheng-service/tuoheng-miniprogram/src/main/resources/application-prod.yml Voir le fichier

#飞手平台地址 #飞手平台地址
pilot-url: http://192.168.11.11:7011/pilot/web/ pilot-url: http://192.168.11.11:7011/pilot/web/
#airport配置地址 #airport配置地址
airport-url: https://airport.t-aaron.com
airport-url: https://airport.t-aaron.com/airport/admin
# 文件配置 # 文件配置
uploads: uploads:
#上传的服务器上的映射文件夹 #上传的服务器上的映射文件夹

+ 1
- 1
tuoheng-service/tuoheng-miniprogram/src/main/resources/application-test.yml Voir le fichier

#飞手平台地址 #飞手平台地址
pilot-url: http://192.168.11.11:7011/pilot/web/ pilot-url: http://192.168.11.11:7011/pilot/web/
#airport配置地址 #airport配置地址
airport-url: https://airport-test.t-aaron.com
airport-url: https://airport-test.t-aaron.com/airport/admin
# 文件配置 # 文件配置
uploads: uploads:
#上传的服务器上的映射文件夹 #上传的服务器上的映射文件夹

Chargement…
Annuler
Enregistrer