From 341daa26d6594cfc62b17a658b83b9a6b9cea7dc Mon Sep 17 00:00:00 2001
From: heyuntao <heyuntao@LAPTOP-MP4HD5NS>
Date: 星期四, 13 七月 2023 10:28:48 +0800
Subject: [PATCH] 千人前面(猜你喜欢)

---
 application/api/logic/taoke/device/Jd.php |   41 +++++++++++++++++++++++++++++++++++++++++
 1 files changed, 41 insertions(+), 0 deletions(-)

diff --git a/application/api/logic/taoke/device/Jd.php b/application/api/logic/taoke/device/Jd.php
index bec6224..1bac172 100644
--- a/application/api/logic/taoke/device/Jd.php
+++ b/application/api/logic/taoke/device/Jd.php
@@ -299,6 +299,47 @@
             'pageSize' => $pageSize,
             'keyword' => $keyword
         ];
+        
+        if($isCoupon == 1)$send_data['isCoupon'] = $isCoupon;
+        $result = send_get(self::request_url['search_url'],$send_data);
+        if(empty($result) || $result['return'] != 0) return [];
+        $list = $result['result']['goods'];
+        if(!empty($list)){
+            foreach($list as &$goods){
+                $goods = self::initSearchGoods($goods);
+            }
+        }
+         return $list;
+    }
+
+     /**
+     * 鎼滅储鍟嗗搧锛堝鍔犵被鐩甶d--hyt锛� http://jingtuitui.com/api_item?id=3
+     *
+     * @param [type] $keyword   鍏抽敭璇�
+     * @param [type] $sort      asc=鍗囬檷搴忥紱desc=榛樿闄嶅簭
+     * @param [type] $owner     鍟嗗搧绫诲瀷 锛氾紙g:鑷惀锛沺:POP锛�
+     * @param [type] $isCoupon  鏄惁鏄紭鎯犲埜鍟嗗搧 1=鏈変紭鎯犲埜
+     * @param [type] $sortName  鎺掑簭瀛楁 price鍗曚环锛� commissionShare浣i噾姣斾緥锛� commission浣i噾锛沬nOrderCount30Days 30澶╁紩鍗曢噺锛沬nOrderComm30Days 30澶╂敮鍑轰剑閲�
+     * @param [type] $page
+     * @param [type] $pageSize
+     * @param [type] $cid1  绫荤洰id
+     * @return void
+     */
+    public function search_cid_Goods($keyword,$sort,$owner,$isCoupon,$sortName,$page,$pageSize,$cid1)
+    {
+        $send_data = [
+            'appkey' => $this->appkey,
+            'appid' => $this->appid,
+            'v' => $this->search_version,
+            'sort' => $sort,
+            'owner' => $owner,
+            'sortName' => $sortName,
+            'pageIndex' => $page,
+            'pageSize' => $pageSize,
+            'keyword' => $keyword,
+            'cid1' => $cid1
+        ];
+        
         if($isCoupon == 1)$send_data['isCoupon'] = $isCoupon;
         $result = send_get(self::request_url['search_url'],$send_data);
         if(empty($result) || $result['return'] != 0) return [];

--
Gitblit v1.9.3