|
|
@ -466,8 +466,9 @@ int version()
|
|
|
|
|
|
|
|
|
|
|
|
std::string computePhoneNumber(double freq, std::string icao, bool atis)
|
|
|
|
std::string computePhoneNumber(double freq, std::string icao, bool atis)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if(icao.empty())
|
|
|
|
// zhongjin 测试环境,去掉机场编号
|
|
|
|
return std::string();
|
|
|
|
//if(icao.empty())
|
|
|
|
|
|
|
|
// return std::string();
|
|
|
|
|
|
|
|
|
|
|
|
char phoneNumber[256];
|
|
|
|
char phoneNumber[256];
|
|
|
|
char exten[32];
|
|
|
|
char exten[32];
|
|
|
@ -486,6 +487,7 @@ std::string computePhoneNumber(double freq, std::string icao, bool atis)
|
|
|
|
(int) (freq * 1000 + 0.5) );
|
|
|
|
(int) (freq * 1000 + 0.5) );
|
|
|
|
exten[16] = '\0';
|
|
|
|
exten[16] = '\0';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// zhongjin 测试环境,去掉机场编号
|
|
|
|
sprintf( exten,
|
|
|
|
sprintf( exten,
|
|
|
|
"%02d%06d",
|
|
|
|
"%02d%06d",
|
|
|
|
01,
|
|
|
|
01,
|
|
|
|