Your Name преди 2 седмици
родител
ревизия
14514bd71b
променени са 2 файла, в които са добавени 16 реда и са изтрити 1 реда
  1. 1
    0
      app/api/controller/ShopContent.php
  2. 15
    1
      app/api/logic/ShopContentLogic.php

+ 1
- 0
app/api/controller/ShopContent.php Целия файл

@@ -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 Целия файл

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

Loading…
Отказ
Запис