@ -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;
@ -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';
/**