From: Caisking Date: Thu, 22 Jan 2026 08:41:10 +0000 (+0800) Subject: 修复骑行的距离限制问题 X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=refs%2Fchanges%2F3124%2F1;p=mirrors%2FFD230.git 修复骑行的距离限制问题 --- diff --git a/code/sdk/application/wearable/fd272/nativeapp/nativeui/traing/src/TraingModel.cpp b/code/sdk/application/wearable/fd272/nativeapp/nativeui/traing/src/TraingModel.cpp index e3b2d897f..bf127156b 100644 --- a/code/sdk/application/wearable/fd272/nativeapp/nativeui/traing/src/TraingModel.cpp +++ b/code/sdk/application/wearable/fd272/nativeapp/nativeui/traing/src/TraingModel.cpp @@ -1513,7 +1513,8 @@ bool TraingModel::GetMomentum() { } // 如果是需要GPS定位的运动,需要判断移动距离是否大于100m,不然轨迹可能异常 - if (IsNeedGPS(sportdata->sportId)) { + // 但是目前轨迹没有距离,先不判断 + if ((IsNeedGPS(sportdata->sportId))&&(sportdata->sportId!=UIResourceTextId::STR_EXERCISE_OUTDOORBIKING)) { if (sportdata->distance < 100) { MomentumFlag = false; }