mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
Update ShopOrderItem.php
This commit is contained in:
parent
ac664a269d
commit
1368f1e986
@ -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',
|
||||
]);
|
||||
|
Loading…
x
Reference in New Issue
Block a user