feature/main20240421
guojia 7 months ago
parent d01368e397
commit db60a1aad0
  1. 2
      app/api/controller/Square.php
  2. 2
      app/common/model/Square.php
  3. 4
      public/install/data/install_struct.sql

@ -46,7 +46,7 @@ class Square extends Controller
return $this->renderError('分类不能为空');
}
$data = $this->postForm();
$data = $this->postData();
$data['merchant_id'] = $this->merchantId;
$data['user_name'] = $useInfo['user_id'];
$data['real_name'] = $useInfo['nick_name'];

@ -73,7 +73,7 @@ class Square extends BaseModel
// 检索查询条件
$filter = [];
// 搜索关键词
!empty($params['cate']) && $filter[] = ['cate', '=', "%{$params['cate']}%"];
!empty($params['cate']) && $filter[] = ['cate', '=', "{$params['cate']}"];
// 门店状态
//is_numeric($params['status']) && $filter[] = ['status', '=', (int)$params['status']];
return $filter;

@ -1750,8 +1750,8 @@ CREATE TABLE `yoshop_square` (
`imgs` varchar(200) NOT NULL DEFAULT '' COMMENT '图片ID',
`content` longtext NOT NULL COMMENT '动态内容',
`cate` varchar(200) NOT NULL DEFAULT '' COMMENT '动态类别',
`user_name` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '买家用户名',
`real_name` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '真实用户名',
`user_name` varchar(100) NOT NULL DEFAULT '' COMMENT '买家用户名',
`real_name` varchar(100) NOT NULL DEFAULT '' COMMENT '真实用户名',
`is_delete` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '是否删除',
`create_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '创建时间',
`update_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '更新时间',

Loading…
Cancel
Save