修改缘分匹配只显示一个城市

This commit is contained in:
CYH 2023-08-14 10:19:00 +03:00
parent b6cef16f35
commit 28e9f4b29b

View File

@ -134,8 +134,8 @@ createCustomMsg(String userId, String imId) async {
List city = data['data']['both_cities']; List city = data['data']['both_cities'];
print('城市'+city.toString()); print('城市'+city.toString());
if (city.isNotEmpty) { if (city.isNotEmpty) {
desc = '你们都在${city.length > 1 ? city.join(''): city.first}留下过足迹'; desc = '你们都在${city.first}留下过足迹';
cityStr = '你们都在${city.length > 1 ? city.join(''): city.first}留下过足迹'; cityStr = '你们都在${city.first}留下过足迹';
} }
} }