|
|
@@ -125,9 +125,16 @@ def pai2_tginfo_api(request):
|
125
|
125
|
if not group_id:
|
126
|
126
|
return response(GroupUserStatusCode.USER_HAS_NOT_JOIN_GROUP)
|
127
|
127
|
|
|
128
|
+ group_info = get_group_info(group_id)
|
|
129
|
+ gather_at = group_info.get('gather_at', '')
|
|
130
|
+ if gather_at and tc.utc_datetime() > (tc.utc_string_to_utc_datetime(gather_at, format='%Y-%m-%dT%H:%M:%SZ') if isinstance(gather_at, basestring) else gather_at):
|
|
131
|
+ group_info['gather_at'] = ''
|
|
132
|
+ group_info['gather_lon'] = ''
|
|
133
|
+ group_info['gather_lat'] = ''
|
|
134
|
+
|
128
|
135
|
return response(200, 'Get Tour Guide Group Detail Info Success', u'获取旅行团详情成功', {
|
129
|
136
|
'group_id': group_id,
|
130
|
|
- 'group': get_group_info(group_id),
|
|
137
|
+ 'group': group_info,
|
131
|
138
|
'users': get_group_users_info(group_id, user_id),
|
132
|
139
|
})
|
133
|
140
|
|