已知问题修改
This commit is contained in:
parent
ab40596dca
commit
83035edc44
@ -22,8 +22,6 @@ PODS:
|
||||
- fluttertoast (0.0.2):
|
||||
- Flutter
|
||||
- Toast
|
||||
- fluwx_no_pay_rz (0.0.1):
|
||||
- Flutter
|
||||
- FMDB (2.7.5):
|
||||
- FMDB/standard (= 2.7.5)
|
||||
- FMDB/standard (2.7.5)
|
||||
@ -73,7 +71,6 @@ DEPENDENCIES:
|
||||
- Flutter (from `Flutter`)
|
||||
- flutter_native_contact_picker (from `.symlinks/plugins/flutter_native_contact_picker/ios`)
|
||||
- fluttertoast (from `.symlinks/plugins/fluttertoast/ios`)
|
||||
- fluwx_no_pay_rz (from `.symlinks/plugins/fluwx_no_pay_rz/ios`)
|
||||
- google_maps_flutter_ios (from `.symlinks/plugins/google_maps_flutter_ios/ios`)
|
||||
- image_picker_ios (from `.symlinks/plugins/image_picker_ios/ios`)
|
||||
- network_info_plus (from `.symlinks/plugins/network_info_plus/ios`)
|
||||
@ -114,8 +111,6 @@ EXTERNAL SOURCES:
|
||||
:path: ".symlinks/plugins/flutter_native_contact_picker/ios"
|
||||
fluttertoast:
|
||||
:path: ".symlinks/plugins/fluttertoast/ios"
|
||||
fluwx_no_pay_rz:
|
||||
:path: ".symlinks/plugins/fluwx_no_pay_rz/ios"
|
||||
google_maps_flutter_ios:
|
||||
:path: ".symlinks/plugins/google_maps_flutter_ios/ios"
|
||||
image_picker_ios:
|
||||
@ -151,7 +146,6 @@ SPEC CHECKSUMS:
|
||||
Flutter: f04841e97a9d0b0a8025694d0796dd46242b2854
|
||||
flutter_native_contact_picker: bd430ba0fbf82768bb50c2c52a69a65759a8f907
|
||||
fluttertoast: fafc4fa4d01a6a9e4f772ecd190ffa525e9e2d9c
|
||||
fluwx_no_pay_rz: afc11aac65505182bd887798fcdc4bbc9e35cd36
|
||||
FMDB: 2ce00b547f966261cd18927a3ddb07cb6f3db82a
|
||||
google_maps_flutter_ios: abdac20d6ce8931f6ebc5f46616df241bfaa2cfd
|
||||
GoogleMaps: 025272d5876d3b32604e5c080dc25eaf68764693
|
||||
|
||||
@ -7,7 +7,6 @@ import 'package:star_lock/network/api_repository.dart';
|
||||
import 'package:star_lock/tools/baseGetXController.dart';
|
||||
import 'package:star_lock/tools/showTFView.dart';
|
||||
import 'package:star_lock/tools/toast.dart';
|
||||
import 'package:fluwx_no_pay_rz/fluwx_no_pay_rz.dart';
|
||||
|
||||
import '../../../../appRouters.dart';
|
||||
import '../../../../app_settings/app_colors.dart';
|
||||
@ -38,10 +37,10 @@ class _PasswordKeyDetailPageState extends State<PasswordKeyDetailPage> {
|
||||
// _initFluwx();
|
||||
}
|
||||
|
||||
_initFluwx() async {
|
||||
await registerWxApi(
|
||||
appId: "", doOnAndroid: true, doOnIOS: true, universalLink: "");
|
||||
}
|
||||
// _initFluwx() async {
|
||||
// await registerWxApi(
|
||||
// appId: "", doOnAndroid: true, doOnIOS: true, universalLink: "");
|
||||
// }
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
|
||||
@ -47,8 +47,8 @@ class SafeVerifyLogic extends BaseGetXController {
|
||||
|
||||
//删除账号请求
|
||||
Future<void> deleteAccountRequest() async {
|
||||
LoginEntity entity = await ApiRepository.to
|
||||
.deleteAccount("", "", state.verificationCode.value);
|
||||
LoginEntity entity =
|
||||
await ApiRepository.to.deleteAccount("1", state.verificationCode.value);
|
||||
if (entity.errorCode!.codeIsSuccessful) {
|
||||
Toast.show(msg: '验证成功,账号已删除');
|
||||
//删除账号成功,
|
||||
|
||||
@ -45,17 +45,6 @@ class PersonInfoEditAccountLogic extends BaseGetXController {
|
||||
} else {}
|
||||
}
|
||||
|
||||
//删除账号请求
|
||||
Future<void> deleteAccountRequest() async {
|
||||
LoginEntity entity = await ApiRepository.to
|
||||
.deleteAccount("", "", state.verificationCode.value);
|
||||
if (entity.errorCode!.codeIsSuccessful) {
|
||||
Toast.show(msg: '验证成功,账号已删除');
|
||||
//删除账号成功,
|
||||
Get.offNamedUntil(Routers.starLockLoginPage, (route) => false);
|
||||
}
|
||||
}
|
||||
|
||||
void checkNext(TextEditingController controller) {
|
||||
changeInput(controller);
|
||||
}
|
||||
|
||||
@ -1139,14 +1139,11 @@ class ApiProvider extends BaseProvider {
|
||||
|
||||
//删除账号
|
||||
Future<Response> deleteAccount(
|
||||
String operatorUid, String uniqueid, String verificationCode) =>
|
||||
String channel, String verificationCode) =>
|
||||
post(
|
||||
deleteAccountURL.toUrl,
|
||||
jsonEncode({
|
||||
'operatorUid': operatorUid,
|
||||
'uniqueid': uniqueid,
|
||||
'verificationCode': verificationCode
|
||||
}));
|
||||
jsonEncode(
|
||||
{'channel': channel, 'verificationCode': verificationCode}));
|
||||
|
||||
// 获取个人信息
|
||||
Future<Response> getUserInfo(String operatorUid) =>
|
||||
|
||||
@ -1134,9 +1134,8 @@ class ApiRepository {
|
||||
|
||||
//删除账号
|
||||
Future<LoginEntity> deleteAccount(
|
||||
String operatorUid, String uniqueid, String verificationCode) async {
|
||||
final res = await apiProvider.deleteAccount(
|
||||
operatorUid, uniqueid, verificationCode);
|
||||
String channel, String verificationCode) async {
|
||||
final res = await apiProvider.deleteAccount(channel, verificationCode);
|
||||
return LoginEntity.fromJson(res.body);
|
||||
}
|
||||
|
||||
|
||||
@ -111,7 +111,6 @@ dependencies:
|
||||
#网络图片缓存
|
||||
cached_network_image: ^3.2.0
|
||||
webview_flutter: ^4.2.3
|
||||
fluwx_no_pay_rz: ^3.4.4+1
|
||||
|
||||
dev_dependencies:
|
||||
flutter_test:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user