diff --git a/app/api/controller/Square.php b/app/api/controller/Square.php index fc16048e..534831a6 100644 --- a/app/api/controller/Square.php +++ b/app/api/controller/Square.php @@ -97,7 +97,7 @@ class Square extends Controller $model = new squarelikeModel; $detail = squarelikeModel::detail($id, (String)$useInfo['user_id']); - //$data = $this->postData(); + $data1 = []; $data1['merchant_id'] = $this->merchantId; diff --git a/app/common/model/Squarelike.php b/app/common/model/Squarelike.php index f5faaf66..39099bd3 100644 --- a/app/common/model/Squarelike.php +++ b/app/common/model/Squarelike.php @@ -23,10 +23,10 @@ use think\model\relation\HasOne; class Squarelike extends BaseModel { // 定义表名 - protected $name = 'square'; + protected $name = 'squarelike'; // 定义主键 - protected $pk = 'square_id'; + protected $pk = 'squarelike_id'; /**