fix: openapi 产品详情不输出links->platform问题

This commit is contained in:
2025-07-04 17:42:23 +08:00
parent d8ac9530d8
commit 68e56eead0
2 changed files with 5 additions and 3 deletions

View File

@@ -12,7 +12,7 @@ use app\common\model\ProductPurchaseLinkBaseModel;
class ProductPurchaseLinkModel extends ProductPurchaseLinkBaseModel
{
// 关联购买平台
public function platform()
public function platforms()
{
return $this->belongsTo(ProductPurchasePlatformModel::class, 'platform_id', 'id')->bind(['platform']);
}