debug: log stopTreatment success/failure on stop button

这个提交包含在:
Guoguo
2026-06-24 03:53:31 -07:00
父节点 229e5f4ed5
当前提交 a5dacef4a7
+5 -1
查看文件
@@ -314,7 +314,11 @@ Page({
content: '确定要提前结束本次使用吗?', content: '确定要提前结束本次使用吗?',
success: function (res) { success: function (res) {
if (res.confirm) { if (res.confirm) {
ble.stopTreatment().catch(function () {}).then(function () { ble.stopTreatment().then(function (res) {
console.log('[TREAT] 停止命令发送成功', res)
}).catch(function (err) {
console.error('[TREAT] 停止命令发送失败', err)
}).then(function () {
self.finishAsComplete() self.finishAsComplete()
}) })
} }