2 Commits

Author SHA1 Message Date
  Your Name 985bf005e1 Merge branch 'develop' of https://gitea.zx2049.com/yituan/opkpm into local-develop 2 weeks ago
  Your Name 14514bd71b tk 2 weeks ago
2 changed files with 16 additions and 1 deletions
  1. 1
    0
      app/api/controller/ShopContent.php
  2. 15
    1
      app/api/logic/ShopContentLogic.php

+ 1
- 0
app/api/controller/ShopContent.php View File

@@ -169,6 +169,7 @@ class ShopContent extends Api
169 169
 
170 170
 
171 171
     /*
172
+     * 加密数据的接口
172 173
      * https://api.zx2049.com/api/shopContent/getShopConfig2?code=7729c5e9779d9eb37c75a2715e332b29
173 174
      */
174 175
     public function getShopConfig2(){

+ 15
- 1
app/api/logic/ShopContentLogic.php View File

@@ -664,9 +664,22 @@ class ShopContentLogic extends Logic
664 664
     }
665 665
     public static function getXhsAppuim_1()
666 666
     {
667
-        //           /parent::*[1]/
667
+        //相对位置   /parent::*[1]/
668
+        //p推荐页  p搜索页 p搜索列表页_1 p搜索列表页_2 p图文页 p视频页 p旧版视频页 p用户主页 p私信页
668 669
         $data = [
669 670
             "默认" => '',
671
+            //页面唯一标识 start
672
+            "p推荐页" => '//android.view.ViewGroup[@class="android.view.ViewGroup" and @index="0"]/android.widget.RelativeLayout[@class="android.widget.RelativeLayout" and @index="2" and @content-desc="发布"]',
673
+            "p搜索页" => '//android.widget.LinearLayout[@class="android.widget.LinearLayout"]/android.widget.ImageView[@class="android.widget.ImageView" and @content-desc="拍照搜索"]',
674
+            "p搜索列表页_1" => '//android.widget.Button[@class="android.widget.Button"]/android.widget.TextView[@text="筛选"]',
675
+            "p搜索列表页_2" => '//android.widget.TextView[@class="android.widget.TextView" and @text="全部"]/parent::*[1]/android.widget.ImageView[@class="android.widget.ImageView"]',
676
+            "p图文页" => '//android.widget.RelativeLayout[@class="android.widget.RelativeLayout"]/android.widget.Button[@content-desc="分享"]',
677
+            "p视频页" => '//android.view.ViewGroup[@class="android.view.ViewGroup"]//android.widget.ImageView[@class="android.widget.ImageView" and @content-desc="搜索"]',
678
+            "p旧版视频页" => '//androidx.recyclerview.widget.RecyclerView[@class="androidx.recyclerview.widget.RecyclerView"]//android.view.ViewGroup[@class="android.view.ViewGroup"]//android.widget.ImageView[@class="android.widget.ImageView" and @index="5"]',
679
+            "p用户主页" => '//android.widget.LinearLayout[@class="android.widget.LinearLayout"]/android.widget.TextView[contains(@text,"小红书号")]',
680
+            "p私信页" => '//android.widget.FrameLayout[@class="android.widget.FrameLayout"]/android.widget.EditText[@class="android.widget.EditText"]',
681
+            //页面唯一标识 end
682
+            //页面多版本 start
670 683
             "搜索列表" => '//androidx.recyclerview.widget.RecyclerView[@class="androidx.recyclerview.widget.RecyclerView"]/android.widget.FrameLayout[@class="android.widget.FrameLayout"]/android.widget.RelativeLayout[@class="android.widget.RelativeLayout"]/android.widget.TextView[@class="android.widget.TextView" and @text!=""]',
671 684
             "推荐列表" => '//androidx.recyclerview.widget.RecyclerView[@class="androidx.recyclerview.widget.RecyclerView"]/android.widget.FrameLayout[@class="android.widget.FrameLayout" and @content-desc!=""]',
672 685
             '推荐列表元素' => '//android.widget.FrameLayout[@content-desc="变量1"]',
@@ -679,6 +692,7 @@ class ShopContentLogic extends Logic
679 692
             "视频获取点赞按钮" => '//android.widget.FrameLayout[@class="android.widget.FrameLayout" and @index="1"]/android.widget.LinearLayout[@index="0"]/android.widget.LinearLayout[@index="0"]/android.widget.TextView[@class="android.widget.TextView"]',
680 693
             "视频获取收藏按钮" => '//android.widget.FrameLayout[@class="android.widget.FrameLayout" and @index="1"]/android.widget.LinearLayout[@index="0"]/android.widget.LinearLayout[@index="2"]/android.widget.TextView[@class="android.widget.TextView"]',
681 694
             "视频详情返回按钮" => '//android.view.ViewGroup[@class="android.view.ViewGroup"]/android.widget.ImageView[contains(@content-desc,"返回")]'
695
+            //页面多版本 end
682 696
         ];
683 697
         return $data;
684 698
     }

Loading…
Cancel
Save