提交 e70c4011 authored 作者: 王鹏飞's avatar 王鹏飞

chore: 更新项目配置,移除不必要的依赖,优化登录逻辑,调整版本号

上级 90ce9cd2
......@@ -28,6 +28,9 @@ android {
targetSdkVersion flutter.targetSdkVersion
versionCode flutter.versionCode
versionName flutter.versionName
ndk {
abiFilters 'arm64-v8a', 'armeabi-v7a'
}
}
signingConfigs {
......
......@@ -4,8 +4,6 @@ PODS:
- connectivity_plus (0.0.1):
- Flutter
- ReachabilitySwift
- device_info_plus (0.0.1):
- Flutter
- Flutter (1.0.0)
- flutter_app_update (0.0.1):
- Flutter
......@@ -60,7 +58,6 @@ PODS:
DEPENDENCIES:
- audio_session (from `.symlinks/plugins/audio_session/ios`)
- connectivity_plus (from `.symlinks/plugins/connectivity_plus/ios`)
- device_info_plus (from `.symlinks/plugins/device_info_plus/ios`)
- Flutter (from `Flutter`)
- flutter_app_update (from `.symlinks/plugins/flutter_app_update/ios`)
- flutter_inapp_purchase (from `.symlinks/plugins/flutter_inapp_purchase/ios`)
......@@ -89,8 +86,6 @@ EXTERNAL SOURCES:
:path: ".symlinks/plugins/audio_session/ios"
connectivity_plus:
:path: ".symlinks/plugins/connectivity_plus/ios"
device_info_plus:
:path: ".symlinks/plugins/device_info_plus/ios"
Flutter:
:path: Flutter
flutter_app_update:
......@@ -125,7 +120,6 @@ EXTERNAL SOURCES:
SPEC CHECKSUMS:
audio_session: 9bb7f6c970f21241b19f5a3658097ae459681ba0
connectivity_plus: 481668c94744c30c53b8895afb39159d1e619bdf
device_info_plus: 335f3ce08d2e174b9fdc3db3db0f4e3b1f66bd89
Flutter: e0871f40cf51350855a761d2e70bf5af5b9b5de7
flutter_app_update: 816fdb2e30e4832a7c45e3f108d391c42ef040a9
flutter_inapp_purchase: 722da12971a50f306f37e62fc1aaf576b1cbecf6
......
......@@ -486,7 +486,7 @@
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
DEVELOPMENT_TEAM = MYN43C5WGE;
DEVELOPMENT_TEAM = 65TSK9H32H;
ENABLE_BITCODE = NO;
INFOPLIST_FILE = Runner/Info.plist;
INFOPLIST_KEY_CFBundleDisplayName = "清控紫荆数智学堂";
......@@ -496,7 +496,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
PRODUCT_BUNDLE_IDENTIFIER = com.zijing.book.flutterBook;
PRODUCT_BUNDLE_IDENTIFIER = com.zijing.book.flutterBook.max;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
VERSIONING_SYSTEM = "apple-generic";
......@@ -659,7 +659,7 @@
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
DEVELOPMENT_TEAM = MYN43C5WGE;
DEVELOPMENT_TEAM = 65TSK9H32H;
ENABLE_BITCODE = NO;
INFOPLIST_FILE = Runner/Info.plist;
INFOPLIST_KEY_CFBundleDisplayName = "清控紫荆数智学堂";
......@@ -669,7 +669,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
PRODUCT_BUNDLE_IDENTIFIER = com.zijing.book.flutterBook;
PRODUCT_BUNDLE_IDENTIFIER = com.zijing.book.flutterBook.max;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
VERSIONING_SYSTEM = "apple-generic";
......@@ -685,7 +685,7 @@
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
DEVELOPMENT_TEAM = MYN43C5WGE;
DEVELOPMENT_TEAM = 65TSK9H32H;
ENABLE_BITCODE = NO;
INFOPLIST_FILE = Runner/Info.plist;
INFOPLIST_KEY_CFBundleDisplayName = "清控紫荆数智学堂";
......@@ -695,7 +695,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
PRODUCT_BUNDLE_IDENTIFIER = com.zijing.book.flutterBook;
PRODUCT_BUNDLE_IDENTIFIER = com.zijing.book.flutterBook.max;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
VERSIONING_SYSTEM = "apple-generic";
......
......@@ -2,9 +2,5 @@
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.apple.developer.associated-domains</key>
<array>
<string>applinks:testdomain.com</string>
</array>
</dict>
</plist>
......@@ -9,7 +9,6 @@ abstract class AccountAPI {
required String type,
String? password,
String? code,
String? uuid,
}) async {
// assert((password != null && code == null) ||
// (password == null && code != null),
......@@ -27,7 +26,7 @@ abstract class AccountAPI {
// 验证码登录
if(type == '2'){
params['code'] = code;
params['uuid'] = uuid;
params['uuid'] = _getUUID();
}
final result = await HttpService.to.post(
'/v1/members/login/login',
......@@ -72,25 +71,12 @@ abstract class AccountAPI {
required String type,
}) async {
String uuid = '';
final DeviceInfoPlugin device = DeviceInfoPlugin();
if(Platform.isIOS){
final IosDeviceInfo iosInfo = await device.iosInfo;
uuid = iosInfo.identifierForVendor??'';
}
else if(Platform.isAndroid){
const androidIdPlugin = AndroidId();
final AndroidDeviceInfo androidInfo = await device.androidInfo;
uuid = await androidIdPlugin.getId()??'';
uuid = '$uuid${androidInfo.fingerprint}';
}
final result = await HttpService.to.post(
'/v1/members/login/sendCode',
params: {
'phone': phone,
'types': type,
'uuid':uuid
'uuid': _getUUID(),
},
excludeToken: true,
showLoading: true,
......@@ -146,8 +132,15 @@ abstract class AccountAPI {
return false;
}
static String _getUUID() {
const key = 'device_uuid';
String uuid = StorageService.to.getString(key);
if (uuid.isEmpty) {
uuid = '${DateTime.now().millisecondsSinceEpoch.toRadixString(36)}'
'${DateTime.now().microsecond.toRadixString(36)}';
StorageService.to.setString(key, uuid);
}
return uuid;
}
}
\ No newline at end of file
library apis;
import 'dart:io';
import 'package:android_id/android_id.dart';
import 'package:device_info_plus/device_info_plus.dart';
import '../models/index.dart';
import '../services/index.dart';
import '../store/index.dart';
......
......@@ -15,11 +15,12 @@ const String kFailOrder = 'failOrder';
const String kNoteTable = 'members_book_notes';
const String kReadTable = 'read_history';
const String kUserAgreement =
'$kHtmlBaseServer/agreement/ser_agreement.html?v=2';
'$kHtmlBaseServer/agreement/ser_agreement.html?v=3';
const String kUserPriAgreement =
'$kHtmlBaseServer/agreement/pri_agreement.html?v=2';
'$kHtmlBaseServer/agreement/pri_agreement.html?v=3';
const String kDeviceUUID = 'device_uuid';
const String kUserRechargeAgreement =
'$kHtmlBaseServer/agreement/rec_agreement.html?v=1';
'$kHtmlBaseServer/agreement/rec_agreement.html?v=3';
// 错题详情页 html
const String kUserWrongDes = '$kHtmlBaseServer/evaluating_wrong.html';
......
# Generated by pub
# See https://dart.dev/tools/pub/glossary#lockfile
packages:
android_id:
dependency: "direct main"
description:
name: android_id
sha256: "5c2d3a259afcd173dbe367ba452817bd530c4df75d251d652c69b8d3c8ac0d36"
url: "https://pub.dev"
source: hosted
version: "0.3.6"
archive:
dependency: "direct main"
description:
......@@ -161,22 +153,6 @@ packages:
url: "https://pub.dev"
source: hosted
version: "2.3.3"
device_info_plus:
dependency: "direct main"
description:
name: device_info_plus
sha256: "77f757b789ff68e4eaf9c56d1752309bd9f7ad557cb105b938a7f8eb89e59110"
url: "https://pub.dev"
source: hosted
version: "9.1.2"
device_info_plus_platform_interface:
dependency: transitive
description:
name: device_info_plus_platform_interface
sha256: e1ea89119e34903dca74b883d0dd78eb762814f97fb6c76f35e9ff74d261a18f
url: "https://pub.dev"
source: hosted
version: "7.0.3"
dio:
dependency: "direct main"
description:
......@@ -1138,14 +1114,6 @@ packages:
url: "https://pub.dev"
source: hosted
version: "5.13.0"
win32_registry:
dependency: transitive
description:
name: win32_registry
sha256: "21ec76dfc731550fd3e2ce7a33a9ea90b828fdf19a5c3bcf556fa992cfa99852"
url: "https://pub.dev"
source: hosted
version: "1.1.5"
xdg_directories:
dependency: transitive
description:
......
......@@ -24,8 +24,6 @@ environment:
fluwx:
app_id: '1111'
debug_logging: true
ios:
universal_link: https://testdomain.com
# Dependencies specify other packages that your package needs in order to work.
# To automatically upgrade your package dependencies to the latest versions
......@@ -109,10 +107,6 @@ dependencies:
connectivity_plus: ^5.0.2
# 数据库
sqflite: ^2.3.2
# 设备信息
device_info_plus: ^9.1.2
# 安卓
android_id: ^0.3.6
# 防止截屏
# secure_application: ^3.8.0
# sentry_flutter: ^7.19.0
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论