feature/main20240421
郭嘉 9 months ago
parent d81ca839c3
commit ee448a5f5b
  1. 2
      app/api/controller/Square.php
  2. 4
      app/common/model/Squarelike.php

@ -97,7 +97,7 @@ class Square extends Controller
$model = new squarelikeModel; $model = new squarelikeModel;
$detail = squarelikeModel::detail($id, (String)$useInfo['user_id']); $detail = squarelikeModel::detail($id, (String)$useInfo['user_id']);
//$data = $this->postData();
$data1 = []; $data1 = [];
$data1['merchant_id'] = $this->merchantId; $data1['merchant_id'] = $this->merchantId;

@ -23,10 +23,10 @@ use think\model\relation\HasOne;
class Squarelike extends BaseModel class Squarelike extends BaseModel
{ {
// 定义表名 // 定义表名
protected $name = 'square'; protected $name = 'squarelike';
// 定义主键 // 定义主键
protected $pk = 'square_id'; protected $pk = 'squarelike_id';
/** /**

Loading…
Cancel
Save