From 039055838e46d76f095b606e674567903b35cee9 Mon Sep 17 00:00:00 2001 From: gitfjn <2860488097@qq.com> Date: Wed, 14 Jan 2026 19:05:51 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=B8=AA=E4=BA=BA=E4=B8=AD?= =?UTF-8?q?=E5=BF=83=E5=8A=9F=E8=83=BD=20=E6=B7=BB=E5=8A=A0=E8=AE=A2?= =?UTF-8?q?=E5=8D=95=E8=AE=B0=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/api/controller/Sale.php | 2 +- application/api/controller/Staffgoods.php | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/application/api/controller/Sale.php b/application/api/controller/Sale.php index 53a9ff40..d9002ae3 100644 --- a/application/api/controller/Sale.php +++ b/application/api/controller/Sale.php @@ -72,7 +72,7 @@ class Sale extends ApiBase { $userid = $this->user_id; $list = Db::name('order_sale') - ->where('') + ->order('id desc') ->where('user_id',$userid) ->paginate(10); $this->_success('成功',$list); diff --git a/application/api/controller/Staffgoods.php b/application/api/controller/Staffgoods.php index 48e98150..92206605 100644 --- a/application/api/controller/Staffgoods.php +++ b/application/api/controller/Staffgoods.php @@ -368,7 +368,9 @@ class Staffgoods extends ApiBase if ($user == null){ $this->_error('订单不存在'); } + $userid = $this->user_id; $data=[ + 'user_id' => $userid, 'name'=> $user['consignee'], 'phone'=> $user['mobile'], 'adders'=> $user['address'], @@ -399,6 +401,23 @@ class Staffgoods extends ApiBase } $this->_success('评价成功'); } + + //我的评价列表 + public function order_sever_list() + { + $userid = $this->user_id; + $lists = Db::name('orderexe_evaluate') + ->where('user_id',$userid) + ->order('id desc') + ->paginate(10); + + $items = $lists->items(); + foreach ($items as $k => $v) { + $items[$k]['create_time'] = date('Y-m', $v['create_time']); + } + $lists->items($items); + $this->_success('获取数据成功', $lists); + } //员工的工资单 public function order_wages(){