diff --git a/app/common/model/Merchant.php b/app/common/model/Merchant.php index 90280765..0526a279 100644 --- a/app/common/model/Merchant.php +++ b/app/common/model/Merchant.php @@ -26,7 +26,7 @@ class Merchant extends BaseModel protected $name = 'merchant'; // 定义主键 - protected $pk = 'id'; + protected $pk = 'merchant_id'; /** * 关联logo图片