Browse Source

上传解绑流程优化

weicu
liwei1dao 1 year ago
parent
commit
e2b0a70e0b
  1. 8
      ios/Runner.xcodeproj/project.pbxproj
  2. 4
      lib/data/services/network/api.dart
  3. 2
      lib/modules/devices/controllers/devices_controller.dart

8
ios/Runner.xcodeproj/project.pbxproj

@ -3,7 +3,7 @@
archiveVersion = 1;
classes = {
};
objectVersion = 54;
objectVersion = 60;
objects = {
/* Begin PBXBuildFile section */
@ -252,7 +252,7 @@
);
mainGroup = 97C146E51CF9000F007C117D;
packageReferences = (
781AD8BC2B33823900A9FFBB /* XCLocalSwiftPackageReference "FlutterGeneratedPluginSwiftPackage" */,
781AD8BC2B33823900A9FFBB /* XCLocalSwiftPackageReference "Flutter/ephemeral/Packages/FlutterGeneratedPluginSwiftPackage" */,
D013B7972DFA83E400B2B69B /* XCRemoteSwiftPackageReference "flutterfire" */,
);
productRefGroup = 97C146EF1CF9000F007C117D /* Products */;
@ -721,7 +721,7 @@
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements;
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
DEVELOPMENT_TEAM = 537SFY28XS;
DEVELOPMENT_TEAM = K39FB49XKY;
ENABLE_BITCODE = NO;
INFOPLIST_FILE = Runner/Info.plist;
INFOPLIST_KEY_CFBundleDisplayName = "Deep Voice";
@ -800,7 +800,7 @@
/* End XCConfigurationList section */
/* Begin XCLocalSwiftPackageReference section */
781AD8BC2B33823900A9FFBB /* XCLocalSwiftPackageReference "FlutterGeneratedPluginSwiftPackage" */ = {
781AD8BC2B33823900A9FFBB /* XCLocalSwiftPackageReference "Flutter/ephemeral/Packages/FlutterGeneratedPluginSwiftPackage" */ = {
isa = XCLocalSwiftPackageReference;
relativePath = Flutter/ephemeral/Packages/FlutterGeneratedPluginSwiftPackage;
};

4
lib/data/services/network/api.dart

@ -146,10 +146,10 @@ class Api {
}
//解绑定设备
static unbindearphone([params]) {
static unbinddevice([params]) {
return DioManager().request(
NWMethod.post,
'/api/home/user_unbindearphone',
'/api/home/user_unbinddevice',
params: params,
);
}

2
lib/modules/devices/controllers/devices_controller.dart

@ -35,7 +35,7 @@ class DevicesController extends GetxController {
}
void unbindearphone(UserDevice device) async {
final response = await Api.unbindearphone({
final response = await Api.unbinddevice({
"id": device.id,
});
if (response != null) {

Loading…
Cancel
Save