hyzp_ybqx-Commit080:解决以下两个问题:
1、对长度小于等于2的区县名称(“高县”、“珙县”等)不进行去尾操作 2、在线升级测试OK。使用app_installer: 0.5.0插件,准备解决Android11允许“安装未知来源”后应用重启的问题,https://pub.dev/packages/app_installer。
This commit is contained in:
@@ -115,7 +115,11 @@ class UserInfo {
|
||||
|
||||
// 去除末尾的区县
|
||||
String trim_county(String _name) {
|
||||
return _name.substring(0, _name.length - 1);
|
||||
// 对长度小于等于2的区县名称(“高县”、“珙县”等)不进行去尾操作
|
||||
if (_name.length > 2) {
|
||||
_name = _name.substring(0, _name.length - 1);
|
||||
}
|
||||
return _name;
|
||||
}
|
||||
|
||||
Map mapUserInfoRet = {
|
||||
|
||||
Reference in New Issue
Block a user