diff --git a/api/pages/homepage/homepage.js b/api/pages/homepage/homepage.js index a67db7e..8ba0034 100644 --- a/api/pages/homepage/homepage.js +++ b/api/pages/homepage/homepage.js @@ -53,9 +53,9 @@ export function wxSportDecrypt(data) { } // 微信运动自动添加积分接口 -export function wxsportadd(identity) { +export function wxsportadd(identity, steps) { return request({ - url: `/applet/score/record/wxsport/add/${identity}/WX_SPORT_STEP_NUM`, + url: `/applet/score/record/wxsport/add/${identity}/${steps}/WX_SPORT_STEP_NUM`, method: 'get', header: { region: uni.getStorageSync('region'), @@ -64,9 +64,9 @@ export function wxsportadd(identity) { } // 手动增加积分接口 -export function wxsportaddV1(identity, date) { +export function wxsportaddV1(identity, date, steps) { return request({ - url: `/applet/score/record/wxsport/addV1/${identity}/${date}/WX_SPORT_STEP_NUM`, + url: `/applet/score/record/wxsport/addV1/${identity}/${date}/${steps}/WX_SPORT_STEP_NUM`, method: 'get', header: { region: uni.getStorageSync('region'),