Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
B
book-app
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
book-app
Commits
e70c4011
提交
e70c4011
authored
4月 28, 2026
作者:
王鹏飞
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
chore: 更新项目配置,移除不必要的依赖,优化登录逻辑,调整版本号
上级
90ce9cd2
显示空白字符变更
内嵌
并排
正在显示
9 个修改的文件
包含
26 行增加
和
81 行删除
+26
-81
build.gradle
android/app/build.gradle
+3
-0
Podfile.lock
ios/Podfile.lock
+0
-6
project.pbxproj
ios/Runner.xcodeproj/project.pbxproj
+6
-6
Runner.entitlements
ios/Runner/Runner.entitlements
+0
-4
account.dart
lib/apis/account.dart
+13
-19
index.dart
lib/apis/index.dart
+0
-5
constants.dart
lib/utils/constants.dart
+4
-3
pubspec.lock
pubspec.lock
+0
-32
pubspec.yaml
pubspec.yaml
+0
-6
没有找到文件。
android/app/build.gradle
浏览文件 @
e70c4011
...
...
@@ -28,6 +28,9 @@ android {
targetSdkVersion
flutter
.
targetSdkVersion
versionCode
flutter
.
versionCode
versionName
flutter
.
versionName
ndk
{
abiFilters
'arm64-v8a'
,
'armeabi-v7a'
}
}
signingConfigs
{
...
...
ios/Podfile.lock
浏览文件 @
e70c4011
...
...
@@ -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
...
...
ios/Runner.xcodeproj/project.pbxproj
浏览文件 @
e70c4011
...
...
@@ -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"
;
...
...
ios/Runner/Runner.entitlements
浏览文件 @
e70c4011
...
...
@@ -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>
lib/apis/account.dart
浏览文件 @
e70c4011
...
...
@@ -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
lib/apis/index.dart
浏览文件 @
e70c4011
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'
;
...
...
lib/utils/constants.dart
浏览文件 @
e70c4011
...
...
@@ -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'
;
...
...
pubspec.lock
浏览文件 @
e70c4011
# 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:
...
...
pubspec.yaml
浏览文件 @
e70c4011
...
...
@@ -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
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论