Update ShopOrderItem.php

This commit is contained in:
邹景立 2022-10-18 13:28:27 +08:00
parent ac664a269d
commit 1368f1e986

View File

@ -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_name' => 'name',
'goods_cover' => 'cover', 'goods_cover' => 'cover',
]); ]);