完善步数修改工具

This commit is contained in:
net909
2025-10-08 21:48:30 +08:00
parent 268328b2ac
commit 23bb5aea41
3 changed files with 123 additions and 2 deletions
+14
View File
@@ -52,4 +52,18 @@ class App extends Plugin
return msg();
}
public function bind_device(){
$userid = input('post.userid');
$token = input('post.token');
if(!$userid || !$token) return msg('error','参数不能为空');
try{
$sport = new XiaomiSport();
$data = $sport->bind($userid, $token);
return msg('ok','success',$data);
}catch(Exception $e){
return msg('error',$e->getMessage());
}
}
}