diff --git a/plugin/think-plugs-wemall/src/model/PluginWemallGoods.php b/plugin/think-plugs-wemall/src/model/PluginWemallGoods.php index 26e6f0090..4fcc951d5 100644 --- a/plugin/think-plugs-wemall/src/model/PluginWemallGoods.php +++ b/plugin/think-plugs-wemall/src/model/PluginWemallGoods.php @@ -82,8 +82,7 @@ class PluginWemallGoods extends Abs */ public function items(): HasMany { - return static::mk() - ->hasMany(PluginWemallGoodsItem::class, 'gcode', 'code') + return $this->hasMany(PluginWemallGoodsItem::class, 'gcode', 'code') ->withoutField('id,status,create_time,update_time') ->where(['status' => 1]); }