Althars123 3 years ago
parent
commit
1178db667b

+ 4 - 0
twzd-service/src/main/java/com/miaxis/wx/service/impl/WxGzhServiceImpl.java

@@ -203,5 +203,9 @@ public class WxGzhServiceImpl implements IWxGzhService {
         return null;
     }
 
+    public static void main(String[] args) {
+        System.out.println("qrscene_ovKTX5-FKLF6_sgTtCIXpG_lz3PY".substring(8));
+    }
+
 
 }

+ 1 - 1
twzd-service/src/main/java/com/miaxis/wx/service/impl/WxMessageEvenServiceImpl.java

@@ -81,7 +81,7 @@ public class WxMessageEvenServiceImpl implements IWxMessageEvenService {
         //判断是否存在父、子级推广关系
         List<WxSpreadRelation> spreadRelations = wxSpreadRelationService.list(new QueryWrapper<WxSpreadRelation>().eq("openid", fromUserName));
         List<WxSpreadRelation> spreads = wxSpreadRelationService.list(new QueryWrapper<WxSpreadRelation>().eq("parent_openid", fromUserName));
-        String openid = eventKey.split("_")[1];
+        String openid = eventKey.substring(8);
         if (spreadRelations.isEmpty() && spreads.isEmpty()){
             //保存推广关系表
             WxSpreadRelation wxSpreadRelation = new WxSpreadRelation();