2 次程式碼提交

作者 SHA1 備註 提交日期
  Your Name 985bf005e1 Merge branch 'develop' of https://gitea.zx2049.com/yituan/opkpm into local-develop 2 週之前
  Your Name 14514bd71b tk 2 週之前
共有 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
 
169
 
170
 
170
 
171
     /*
171
     /*
172
+     * 加密数据的接口
172
      * https://api.zx2049.com/api/shopContent/getShopConfig2?code=7729c5e9779d9eb37c75a2715e332b29
173
      * https://api.zx2049.com/api/shopContent/getShopConfig2?code=7729c5e9779d9eb37c75a2715e332b29
173
      */
174
      */
174
     public function getShopConfig2(){
175
     public function getShopConfig2(){

+ 15
- 1
app/api/logic/ShopContentLogic.php 查看文件

664
     }
664
     }
665
     public static function getXhsAppuim_1()
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
         $data = [
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
             "搜索列表" => '//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!=""]',
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
             "推荐列表" => '//androidx.recyclerview.widget.RecyclerView[@class="androidx.recyclerview.widget.RecyclerView"]/android.widget.FrameLayout[@class="android.widget.FrameLayout" and @content-desc!=""]',
684
             "推荐列表" => '//androidx.recyclerview.widget.RecyclerView[@class="androidx.recyclerview.widget.RecyclerView"]/android.widget.FrameLayout[@class="android.widget.FrameLayout" and @content-desc!=""]',
672
             '推荐列表元素' => '//android.widget.FrameLayout[@content-desc="变量1"]',
685
             '推荐列表元素' => '//android.widget.FrameLayout[@content-desc="变量1"]',
679
             "视频获取点赞按钮" => '//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"]',
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
             "视频获取收藏按钮" => '//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"]',
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
             "视频详情返回按钮" => '//android.view.ViewGroup[@class="android.view.ViewGroup"]/android.widget.ImageView[contains(@content-desc,"返回")]'
694
             "视频详情返回按钮" => '//android.view.ViewGroup[@class="android.view.ViewGroup"]/android.widget.ImageView[contains(@content-desc,"返回")]'
695
+            //页面多版本 end
682
         ];
696
         ];
683
         return $data;
697
         return $data;
684
     }
698
     }

Loading…
取消
儲存