From 1368f1e986c3a1c3189942a4eec13ad27053c687 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E6=99=AF=E7=AB=8B?= Date: Tue, 18 Oct 2022 13:28:27 +0800 Subject: [PATCH] Update ShopOrderItem.php --- app/data/model/ShopOrderItem.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/data/model/ShopOrderItem.php b/app/data/model/ShopOrderItem.php index 5e04c21e5..396aec114 100644 --- a/app/data/model/ShopOrderItem.php +++ b/app/data/model/ShopOrderItem.php @@ -23,11 +23,11 @@ class ShopOrderItem extends Model /** * 绑定商品数据 - * @return void + * @return \think\model\relation\HasOne */ - public function bindGoods() + public function bindGoods(): HasOne { - $this->goods()->bind([ + return $this->goods()->bind([ 'goods_name' => 'name', 'goods_cover' => 'cover', ]);