切换导航条
此项目
正在载入...
登录
周海龙
/
globalso
·
提交
转到一个项目
GitLab
转到仪表盘
项目
活动
文件
提交
管道
0
构建
0
图表
里程碑
问题
0
合并请求
0
成员
标记
维基
派生
网络
创建新的问题
下载为
差异文件
浏览文件
作者
lyh
2023-12-25 09:34:50 +0800
提交
bf83278d87c90c4ef818ae3b31bd3445fb0aefca
2 个父辈
25ea5f9d
01497d60
Merge branch 'master' of
http://47.244.231.31:8099/zhl/globalso-v6
into develop
隐藏空白字符变更
内嵌
并排对比
正在显示
2 个修改的文件
包含
15 行增加
和
1 行删除
app/Http/Controllers/Bside/Product/CategoryController.php
app/Http/Logic/Bside/Product/ProductLogic.php
app/Http/Controllers/Bside/Product/CategoryController.php
查看文件 @
bf83278
...
...
@@ -62,7 +62,6 @@ class CategoryController extends BaseController
if
(
!
empty
(
$this
->
map
[
'title'
])){
$this
->
map
[
'title'
]
=
[
'like'
,
'%'
.
$this
->
map
[
'title'
]
.
'%'
];
}
$this
->
map
[
'project_id'
]
=
$this
->
user
[
'project_id'
];
return
$this
->
map
;
}
...
...
app/Http/Logic/Bside/Product/ProductLogic.php
查看文件 @
bf83278
...
...
@@ -69,6 +69,21 @@ class ProductLogic extends BaseLogic
}
/**
* @remark :设置最新产品的sort排序
* @name :setNewsSort
* @author :lyh
* @method :post
* @time :2023/12/25 9:27
*/
public
function
setNewsSort
(){
$info
=
$this
->
model
->
orderBy
(
'sort'
,
'desc'
)
->
first
();
if
(
$info
===
false
){
return
1
;
}
return
$info
[
'sort'
]
++
;
}
/**
* @remark :处理扩展字段
* @name :handleExtent
* @author :lyh
...
...
请
注册
或
登录
后发表评论