全都知道了
  • {[item.content]}
    拒绝 同意 拒绝 同意 重新认证 知道了 {[item.infoDateTime | formatTime]}
Nuisance/home-school-contact-app 私有库 公有库 {[ repoInfo.group_name ]}
{[ repoInfo.project.good ]}
Browse Source

Initial commit

master
Nuisance 1 year ago
parent
commit
71afc741d2
  1. 120
      README.md

120
README.md

@ -186,77 +186,77 @@ Nowadays, the inconsistency of school education and family education may easily
### 3.4.1 登录板块
![](http://www.write-bug.com/myres/static/uploads/2021/10/19/6138909c0da0575049377ef43e3b0279.writebug)
![](http://www.writebug.com/myres/static/uploads/2021/10/19/6138909c0da0575049377ef43e3b0279.writebug)
### 3.4.2 班圈板块
![](http://www.write-bug.com/myres/static/uploads/2021/10/19/fdcd5ec8f15f42161b6b9f75e0fc0ea0.writebug)
![](http://www.writebug.com/myres/static/uploads/2021/10/19/fdcd5ec8f15f42161b6b9f75e0fc0ea0.writebug)
### 3.4.3 消息板块
![](http://www.write-bug.com/myres/static/uploads/2021/10/19/11d972e6972c3854dfe64962e989f62f.writebug)
![](http://www.writebug.com/myres/static/uploads/2021/10/19/11d972e6972c3854dfe64962e989f62f.writebug)
### 3.4.4 发现板块
![](http://www.write-bug.com/myres/static/uploads/2021/10/19/d59d37f60fa3a4e21abf7c90ae73c730.writebug)
![](http://www.writebug.com/myres/static/uploads/2021/10/19/d59d37f60fa3a4e21abf7c90ae73c730.writebug)
### 3.4.5 我的板块
![](http://www.write-bug.com/myres/static/uploads/2021/10/19/240cb69f902d9d7575f84f40b26225e3.writebug)
![](http://www.writebug.com/myres/static/uploads/2021/10/19/240cb69f902d9d7575f84f40b26225e3.writebug)
## 3.5 用例说明
### 3.5.1 UC1用户登录
![](http://www.write-bug.com/myres/static/uploads/2021/10/19/65e5c68cf43a3556df1276f47d4a04ac.writebug)
![](http://www.writebug.com/myres/static/uploads/2021/10/19/65e5c68cf43a3556df1276f47d4a04ac.writebug)
### 3.5.2 UC2用户注册
![](http://www.write-bug.com/myres/static/uploads/2021/10/19/f7c278e20635684af503e65203109d58.writebug)
![](http://www.writebug.com/myres/static/uploads/2021/10/19/f7c278e20635684af503e65203109d58.writebug)
### 3.5.3 UC3找回密码
![](http://www.write-bug.com/myres/static/uploads/2021/10/19/c6ee4a4cc9766a2fa69b7536d03b8802.writebug)
![](http://www.writebug.com/myres/static/uploads/2021/10/19/c6ee4a4cc9766a2fa69b7536d03b8802.writebug)
### 3.5.4 UC4发布信息
![](http://www.write-bug.com/myres/static/uploads/2021/10/19/897866eafcd4cc3bdfe3d3dd07dfe851.writebug)
![](http://www.writebug.com/myres/static/uploads/2021/10/19/897866eafcd4cc3bdfe3d3dd07dfe851.writebug)
### 3.5.5 UC5查看所有信息
![](http://www.write-bug.com/myres/static/uploads/2021/10/19/8392bca0a6240a17dc9affa204501a6f.writebug)
![](http://www.writebug.com/myres/static/uploads/2021/10/19/8392bca0a6240a17dc9affa204501a6f.writebug)
### 3.5.6 UC6查看信息详情
![](http://www.write-bug.com/myres/static/uploads/2021/10/19/f05e50e19c9425bd76bd733e28f38f3c.writebug)
![](http://www.writebug.com/myres/static/uploads/2021/10/19/f05e50e19c9425bd76bd733e28f38f3c.writebug)
### 3.5.7 UC7点赞评论回复
![](http://www.write-bug.com/myres/static/uploads/2021/10/19/bb09530905a87514525ab1fad79e7a97.writebug)
![](http://www.writebug.com/myres/static/uploads/2021/10/19/bb09530905a87514525ab1fad79e7a97.writebug)
### 3.5.8 UC8查看联系人和会话
![](http://www.write-bug.com/myres/static/uploads/2021/10/19/b43a4e687791ec5e717743740649dfd5.writebug)
![](http://www.writebug.com/myres/static/uploads/2021/10/19/b43a4e687791ec5e717743740649dfd5.writebug)
### 3.5.9 UC9聊天
![](http://www.write-bug.com/myres/static/uploads/2021/10/19/2665c813c2037221d40aba56ae9a65cc.writebug)
![](http://www.writebug.com/myres/static/uploads/2021/10/19/2665c813c2037221d40aba56ae9a65cc.writebug)
### 3.5.10 UC10音视频通话
![](http://www.write-bug.com/myres/static/uploads/2021/10/19/f6c2e69479a250aaacb59fdcf7a6f68f.writebug)
![](http://www.writebug.com/myres/static/uploads/2021/10/19/f6c2e69479a250aaacb59fdcf7a6f68f.writebug)
### 3.5.11 UC11修改个人信息
![](http://www.write-bug.com/myres/static/uploads/2021/10/19/0cf5d4114e98a999b3112663cdee3533.writebug)
![](http://www.writebug.com/myres/static/uploads/2021/10/19/0cf5d4114e98a999b3112663cdee3533.writebug)
### 3.5.12 UC12修改孩子信息
![](http://www.write-bug.com/myres/static/uploads/2021/10/19/3d746f9584ab9d7b539e2e208e191381.writebug)
![](http://www.writebug.com/myres/static/uploads/2021/10/19/3d746f9584ab9d7b539e2e208e191381.writebug)
### 3.5.13 UC13退出登录
![](http://www.write-bug.com/myres/static/uploads/2021/10/19/ad96395e56cd7c327446c6643b2a7680.writebug)
![](http://www.writebug.com/myres/static/uploads/2021/10/19/ad96395e56cd7c327446c6643b2a7680.writebug)
# 4. 概要设计
@ -264,99 +264,99 @@ Nowadays, the inconsistency of school education and family education may easily
### 4.1.1Android端功能总体设计图
![](http://www.write-bug.com/myres/static/uploads/2021/10/19/aae74aa8d2ddfa0640c734b9f5183abf.writebug)
![](http://www.writebug.com/myres/static/uploads/2021/10/19/aae74aa8d2ddfa0640c734b9f5183abf.writebug)
### 4.1.2 服务器端功能总体设计图
![](http://www.write-bug.com/myres/static/uploads/2021/10/19/a71ad85743e731250e6e0225b653f7e5.writebug)
![](http://www.writebug.com/myres/static/uploads/2021/10/19/a71ad85743e731250e6e0225b653f7e5.writebug)
## 4.2 数据库E-R图设计
![](http://www.write-bug.com/myres/static/uploads/2021/10/19/a9bab1ecbabc432385cab7313f99dcac.writebug)
![](http://www.writebug.com/myres/static/uploads/2021/10/19/a9bab1ecbabc432385cab7313f99dcac.writebug)
## 4.3 系统类图
### 4.3.1 APP端登录板块
![](http://www.write-bug.com/myres/static/uploads/2021/10/19/c5a13c145509eab0503ba3c9b2a52a47.writebug)
![](http://www.writebug.com/myres/static/uploads/2021/10/19/c5a13c145509eab0503ba3c9b2a52a47.writebug)
### 4.3.2 APP端主页板块
![](http://www.write-bug.com/myres/static/uploads/2021/10/19/d40060ae6e4f270a20be48f6e3f459ec.writebug)
![](http://www.writebug.com/myres/static/uploads/2021/10/19/d40060ae6e4f270a20be48f6e3f459ec.writebug)
### 4.3.3 APP端班圈板块
![](http://www.write-bug.com/myres/static/uploads/2021/10/19/2e07225345252b0c4169e4b474234feb.writebug)
![](http://www.writebug.com/myres/static/uploads/2021/10/19/2e07225345252b0c4169e4b474234feb.writebug)
### 4.3.4 APP端发布板块
![](http://www.write-bug.com/myres/static/uploads/2021/10/19/1786fb557a0c2cbc77186c6a4986a29e.writebug)
![](http://www.writebug.com/myres/static/uploads/2021/10/19/1786fb557a0c2cbc77186c6a4986a29e.writebug)
### 4.3.5 APP端消息板块
![](http://www.write-bug.com/myres/static/uploads/2021/10/19/6c68f70b142b35443b47fbb91c606734.writebug)
![](http://www.writebug.com/myres/static/uploads/2021/10/19/6c68f70b142b35443b47fbb91c606734.writebug)
### 4.3.6 APP端发现板块
![](http://www.write-bug.com/myres/static/uploads/2021/10/19/e53e756f71f60cb167eee2b8ea01235c.writebug)
![](http://www.writebug.com/myres/static/uploads/2021/10/19/e53e756f71f60cb167eee2b8ea01235c.writebug)
### 4.3.7 APP端我的板块
![](http://www.write-bug.com/myres/static/uploads/2021/10/19/e298be3bf6e8c9d3fedd56a694afd8a0.writebug)
![](http://www.writebug.com/myres/static/uploads/2021/10/19/e298be3bf6e8c9d3fedd56a694afd8a0.writebug)
## 4.4 界面设计
**图片选取界面设计**
![](http://www.write-bug.com/myres/static/uploads/2021/10/19/949e68f2066dbb66446cfd81d2688b3f.writebug)
![](http://www.writebug.com/myres/static/uploads/2021/10/19/949e68f2066dbb66446cfd81d2688b3f.writebug)
**图片选取界面设计**
![](http://www.write-bug.com/myres/static/uploads/2021/10/19/cd163a94614be73c4482949b7b1328b3.writebug)
![](http://www.writebug.com/myres/static/uploads/2021/10/19/cd163a94614be73c4482949b7b1328b3.writebug)
**登录界面设计**
![](http://www.write-bug.com/myres/static/uploads/2021/10/19/72793c3d5f02f6bb0f2a64d0fb421b1c.writebug)
![](http://www.writebug.com/myres/static/uploads/2021/10/19/72793c3d5f02f6bb0f2a64d0fb421b1c.writebug)
**手机号验证界面设计**
![](http://www.write-bug.com/myres/static/uploads/2021/10/19/5ae302c62197b1f3b08a5ce500963b4e.writebug)
![](http://www.writebug.com/myres/static/uploads/2021/10/19/5ae302c62197b1f3b08a5ce500963b4e.writebug)
**主界面设计**
![](http://www.write-bug.com/myres/static/uploads/2021/10/19/0cc6fba67ab2c9ad21b38e3ebd001787.writebug)
![](http://www.writebug.com/myres/static/uploads/2021/10/19/0cc6fba67ab2c9ad21b38e3ebd001787.writebug)
**课程表界面设计**
![](http://www.write-bug.com/myres/static/uploads/2021/10/19/23f1d6e55cf03004549868eebbc3ea21.writebug)
![](http://www.writebug.com/myres/static/uploads/2021/10/19/23f1d6e55cf03004549868eebbc3ea21.writebug)
**联系人列表界面设计**
![](http://www.write-bug.com/myres/static/uploads/2021/10/19/2959bc98336bc3c52df472f01694597f.writebug)
![](http://www.writebug.com/myres/static/uploads/2021/10/19/2959bc98336bc3c52df472f01694597f.writebug)
**聊天界面设计**
![](http://www.write-bug.com/myres/static/uploads/2021/10/19/35b1838814b50246a6417d23314e4980.writebug)
![](http://www.writebug.com/myres/static/uploads/2021/10/19/35b1838814b50246a6417d23314e4980.writebug)
**音频呼叫界面设计**
![](http://www.write-bug.com/myres/static/uploads/2021/10/19/eeebd14c1718cece6b2cffed2eebf37b.writebug)
![](http://www.writebug.com/myres/static/uploads/2021/10/19/eeebd14c1718cece6b2cffed2eebf37b.writebug)
**发布信息界面设计**
![](http://www.write-bug.com/myres/static/uploads/2021/10/19/9b1d9b6e7be0482f05b25f5d6a082272.writebug)
![](http://www.writebug.com/myres/static/uploads/2021/10/19/9b1d9b6e7be0482f05b25f5d6a082272.writebug)
**发布界面设计**
![](http://www.write-bug.com/myres/static/uploads/2021/10/19/be4b85cd5a26591ddb89d2f1ad2270b4.writebug)
![](http://www.writebug.com/myres/static/uploads/2021/10/19/be4b85cd5a26591ddb89d2f1ad2270b4.writebug)
**我的板块界面设计**
![](http://www.write-bug.com/myres/static/uploads/2021/10/19/da80445ae480e15eeed48c54ee77cefb.writebug)
![](http://www.writebug.com/myres/static/uploads/2021/10/19/da80445ae480e15eeed48c54ee77cefb.writebug)
**按住拍界面设计**
![](http://www.write-bug.com/myres/static/uploads/2021/10/19/cb18b74b1d9a5eb3987a39d7be00b3ea.writebug)
![](http://www.writebug.com/myres/static/uploads/2021/10/19/cb18b74b1d9a5eb3987a39d7be00b3ea.writebug)
# 5. 详细设计
@ -577,7 +577,7 @@ Nowadays, the inconsistency of school education and family education may easily
- 先采用StringUtil工具类对输入数据进行验证,再把LoginPresenter把输入的数据传递给网络交互类AppService,让其与服务器进行数据交互并返回给LoginPresenter,通过回调机制让View层显示相关信息,若是登录成功则正确跳转到应用主页面,否则显示相关错误信息
![](http://www.write-bug.com/myres/static/uploads/2021/10/19/79882ffef9d2cfe7238acfdf8da0a13b.writebug)
![](http://www.writebug.com/myres/static/uploads/2021/10/19/79882ffef9d2cfe7238acfdf8da0a13b.writebug)
### 5.3.2 发布时序图
@ -591,7 +591,7 @@ Nowadays, the inconsistency of school education and family education may easily
- 如果发布成功,则返回到主页面,并发送广播提示主页面进行数据刷新
![](http://www.write-bug.com/myres/static/uploads/2021/10/19/e3075b7e28c2b31fa70d2ca5d13d5596.writebug)
![](http://www.writebug.com/myres/static/uploads/2021/10/19/e3075b7e28c2b31fa70d2ca5d13d5596.writebug)
### 5.3.3 圈子信息时序图
@ -603,7 +603,7 @@ Nowadays, the inconsistency of school education and family education may easily
- 点击评论可以对该条话题信息进行评论,点击评论人可对该用户进行回复
![](http://www.write-bug.com/myres/static/uploads/2021/10/19/f02379593c516587d95273f2ae0f0d65.writebug)
![](http://www.writebug.com/myres/static/uploads/2021/10/19/f02379593c516587d95273f2ae0f0d65.writebug)
### 5.3.4 聊天时序图
@ -621,7 +621,7 @@ Nowadays, the inconsistency of school education and family education may easily
- 监听类收到EMClient返回的信息后处理相应回调,显示相关信息
![](http://www.write-bug.com/myres/static/uploads/2021/10/19/2656ab164af05af5807b50638069513e.writebug)
![](http://www.writebug.com/myres/static/uploads/2021/10/19/2656ab164af05af5807b50638069513e.writebug)
# 6. 系统实现
@ -637,19 +637,19 @@ XAMPP: XAMPP(Apache+MySQL+PHP+PERL)原来的名字叫 LAMPP,但最新的
**Android 源码分包预览**
![](http://www.write-bug.com/myres/static/uploads/2021/10/19/3662af5a6197c3da9e309b0dbc7e80a9.writebug)
![](http://www.writebug.com/myres/static/uploads/2021/10/19/3662af5a6197c3da9e309b0dbc7e80a9.writebug)
**Android 资源文件预览**
![](http://www.write-bug.com/myres/static/uploads/2021/10/19/affac6058735375b202bed943424b69d.writebug)
![](http://www.writebug.com/myres/static/uploads/2021/10/19/affac6058735375b202bed943424b69d.writebug)
### 6.2.2 PHP开发界面总览
![](http://www.write-bug.com/myres/static/uploads/2021/10/19/98313a1f43173fa25a6d1f2e9294a05f.writebug)
![](http://www.writebug.com/myres/static/uploads/2021/10/19/98313a1f43173fa25a6d1f2e9294a05f.writebug)
### 6.2.3 数据库操作页面总览
![](http://www.write-bug.com/myres/static/uploads/2021/10/19/fcf4e7b74a24006929d3bd432cafa203.writebug)
![](http://www.writebug.com/myres/static/uploads/2021/10/19/fcf4e7b74a24006929d3bd432cafa203.writebug)
## 6.3 核心功能代码
@ -669,13 +669,13 @@ XAMPP: XAMPP(Apache+MySQL+PHP+PERL)原来的名字叫 LAMPP,但最新的
核心代码为:
![](http://www.write-bug.com/myres/static/uploads/2021/10/19/e6880457974d7176278ecc23bd0a8f3d.writebug)
![](http://www.writebug.com/myres/static/uploads/2021/10/19/e6880457974d7176278ecc23bd0a8f3d.writebug)
![](http://www.write-bug.com/myres/static/uploads/2021/10/19/ea5a949f51327acd2d339ab6c1e80b54.writebug)
![](http://www.writebug.com/myres/static/uploads/2021/10/19/ea5a949f51327acd2d339ab6c1e80b54.writebug)
![](http://www.write-bug.com/myres/static/uploads/2021/10/19/b5a8ee83912e51a8bac0d19a65428101.writebug)
![](http://www.writebug.com/myres/static/uploads/2021/10/19/b5a8ee83912e51a8bac0d19a65428101.writebug)
![](http://www.write-bug.com/myres/static/uploads/2021/10/19/5704570d88301a1b86c2d15c8d4c3a91.writebug)
![](http://www.writebug.com/myres/static/uploads/2021/10/19/5704570d88301a1b86c2d15c8d4c3a91.writebug)
### 6.3.2 相机适配处理
@ -689,23 +689,23 @@ XAMPP: XAMPP(Apache+MySQL+PHP+PERL)原来的名字叫 LAMPP,但最新的
在Android 6.0 (API 23)开始,Android开始引入动态权限处理,即除了在之前的AndroidManifest.xml文件中申明权限,还需要在使用到权限的时候弹出用户是否授权的框。只需要重写onRequestPermissionsResult方法即可。示例代码如下:
![](http://www.write-bug.com/myres/static/uploads/2021/10/19/04d4b3f2fb8d5274b6a26b9431232761.writebug)
![](http://www.writebug.com/myres/static/uploads/2021/10/19/04d4b3f2fb8d5274b6a26b9431232761.writebug)
![](http://www.write-bug.com/myres/static/uploads/2021/10/19/1c0a29c4d182f6ef9a408763afff70d3.writebug)
![](http://www.writebug.com/myres/static/uploads/2021/10/19/1c0a29c4d182f6ef9a408763afff70d3.writebug)
**对于调用系统相机拍照后图片旋转:**
经常会遇到一种情况,拍照的时候看到照片是正的,但是当APP获取到这张图片的时候,却发现旋转了90度(也有可能是180,270,不过90度比较多见,这应该是手机传感器导致的)。为了解决这种不一定在所有机器上都出现的问题,我们可以引入Android系统提供的ExifInterface类来解决各个属性的操作。ExifInterface可以不用加载图片就获取到图片的长宽、旋转角度等多种属性,我们可以通过ExitInterface获取图片的旋转角度degree来进行处理,当满足degree不为0的时候,调用Matrix的postRotate进行角度旋转,核心代码为:
![](http://www.write-bug.com/myres/static/uploads/2021/10/19/f863e8e7caaf8eb0f133b9a5502a2562.writebug)
![](http://www.writebug.com/myres/static/uploads/2021/10/19/f863e8e7caaf8eb0f133b9a5502a2562.writebug)
![](http://www.write-bug.com/myres/static/uploads/2021/10/19/a4f196e955629485da750c89158a98e7.writebug)
![](http://www.writebug.com/myres/static/uploads/2021/10/19/a4f196e955629485da750c89158a98e7.writebug)
**对于部分机型调起相机会回不去APP的适配处理(拍完照闪退问题):**
这也是相机适配中必须处理的地方,由于Android系统厂商的ROM不一致,会让一些ROM对自带相机应用做优化,当某个APP通过Intent进入相机拍照界面时,系统会把这个APP最上层的Activity销毁回收,只需要重写onSaveInstanceState和onRestoreInstanceState方法对数据进行恢复和保存即可,核心代码为:
![](http://www.write-bug.com/myres/static/uploads/2021/10/19/a280d2e57f8fc040e10b31c10fe5c4f9.writebug)
![](http://www.writebug.com/myres/static/uploads/2021/10/19/a280d2e57f8fc040e10b31c10fe5c4f9.writebug)
**Android 7.0调用系统相机的处理:**
@ -723,9 +723,9 @@ XAMPP: XAMPP(Apache+MySQL+PHP+PERL)原来的名字叫 LAMPP,但最新的
</provider>
```
![](http://www.write-bug.com/myres/static/uploads/2021/10/19/ed8147ee0b3c51bd74e80fcf5b91de82.writebug)
![](http://www.writebug.com/myres/static/uploads/2021/10/19/ed8147ee0b3c51bd74e80fcf5b91de82.writebug)
![](http://www.write-bug.com/myres/static/uploads/2021/10/19/9b955d7b60b281ecdbaff4b9c95a0a23.writebug)
![](http://www.writebug.com/myres/static/uploads/2021/10/19/9b955d7b60b281ecdbaff4b9c95a0a23.writebug)
# 7. 软件测试

Loading…
Cancel
Save

© 2021 WRITE BUG

备案号 京ICP备16025663号-5

© 2021 WRITE BUG
备案号: 京ICP备16025663号-5