From 511380c0e4e5f83a0b6957c714546642d683f171 Mon Sep 17 00:00:00 2001 From: liu <1873441552@qq.com> Date: Wed, 10 Jul 2024 14:42:46 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=99=90=E5=88=B6=E6=9F=A5?= =?UTF-8?q?=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../UserProductStorageLogLists.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/app/admin/lists/user_product_storage_log/UserProductStorageLogLists.php b/app/admin/lists/user_product_storage_log/UserProductStorageLogLists.php index 398313058..42e9b5e73 100644 --- a/app/admin/lists/user_product_storage_log/UserProductStorageLogLists.php +++ b/app/admin/lists/user_product_storage_log/UserProductStorageLogLists.php @@ -46,6 +46,15 @@ class UserProductStorageLogLists extends BaseAdminDataLists implements ListsSear */ public function lists(): array { + $store_id = $this->request->get('store_id',''); + $order_sn = $this->request->get('order_sn',''); + $order = StoreOrder::where('store_id',$store_id) + ->where('order_id','like','%'.$order_sn.'%')->column('id'); + if($order){ + $where[]=['oid','in',$order]; + $this->searchWhere[]=$where; + } + return UserProductStorageLog::where($this->searchWhere) ->field(['id', 'oid', 'uid', 'product_id', 'store_id', 'financial_pm', 'nums','times','update_time']) ->limit($this->limitOffset, $this->limitLength) @@ -63,6 +72,10 @@ class UserProductStorageLogLists extends BaseAdminDataLists implements ListsSear $order = StoreOrder::where('id',$item['oid'])->withTrashed()->field('order_id,verify_code')->find(); $item['verify_code'] = $order['verify_code']??''; $item['order_id'] = $order['order_id']??''; + $item['verify_img'] = ''; + if($order['verify_img']){ + $item['verify_img'] = 'https://'.$this->request->host(true).$order['verify_img']; + } if($item['financial_pm']==1){ $item['financial_pm']='增加'; }else{