zoujiajian 2 ani în urmă
părinte
comite
ba861eea74

+ 2 - 2
netflix-dao/src/main/resources/mapper/GroupRelationMapper.xml

@@ -373,7 +373,7 @@
                 and goods_id = #{goodsId} limit 1) a
                  inner join groups_trips gt
                             on gt.account_id = a.id
-                 inner join groups_relation gr on gr.num = #{num}
-        where gr.expiry_time > now() limit 1
+                 inner join groups_relation gr on gr.groups_id = gt.id
+        where gr.num = #{num} and gr.expiry_time > now() limit 1
     </select>
 </mapper>

+ 2 - 0
netflix-service/src/main/java/com/cyksj/service/relation/impl/GroupRelationFrontServiceImpl.java

@@ -917,6 +917,8 @@ public class GroupRelationFrontServiceImpl implements GroupRelationFrontService
 			throw BusinessRuntimeException.getInstance("该账号已失效");
 		}
 		loginReq.setUserId(relation.getUserId());
+		loginReq.setRelationId(relation.getId());
+		loginReq.setGoodsId(goodsId);
 		try {
 			return getAiVerifyCode(loginReq);
 		} catch (Exception e) {