|
|
@ -535,7 +535,6 @@ class PairingController extends GetxController { |
|
|
// 调用BLE管理器的自动绑定方法 |
|
|
// 调用BLE管理器的自动绑定方法 |
|
|
final response = await Api.bindearphone({ |
|
|
final response = await Api.bindearphone({ |
|
|
"earphonemac": currentDevice?.address, |
|
|
"earphonemac": currentDevice?.address, |
|
|
"earphoneauthcode": "", |
|
|
|
|
|
}); |
|
|
}); |
|
|
Logger.i(_tag, '手动授权结果 ${response}'); |
|
|
Logger.i(_tag, '手动授权结果 ${response}'); |
|
|
if (response != null) { |
|
|
if (response != null) { |
|
|
@ -551,7 +550,7 @@ class PairingController extends GetxController { |
|
|
/// 用户点击授权码输入框 |
|
|
/// 用户点击授权码输入框 |
|
|
void onAutoCodeInputTap() async { |
|
|
void onAutoCodeInputTap() async { |
|
|
// 调用BLE管理器的自动绑定方法 |
|
|
// 调用BLE管理器的自动绑定方法 |
|
|
final response = await Api.bindearphone({ |
|
|
final response = await Api.bindauthcode({ |
|
|
"earphonemac": currentDevice?.address, |
|
|
"earphonemac": currentDevice?.address, |
|
|
"earphoneauthcode": codeInputController.text.trim(), |
|
|
"earphoneauthcode": codeInputController.text.trim(), |
|
|
}); |
|
|
}); |
|
|
|