Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
alading2018
ShopXO
提交
3180f659
ShopXO
项目概览
alading2018
/
ShopXO
与 Fork 源项目一致
Fork自
纵之格 / ShopXO
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
ShopXO
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
3180f659
编写于
10月 30, 2021
作者:
G
gongfuxiang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
细节优化
上级
ca13c5c5
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
52 addition
and
6 deletion
+52
-6
app/common.php
app/common.php
+19
-0
app/service/ResourcesService.php
app/service/ResourcesService.php
+7
-1
app/service/SlideService.php
app/service/SlideService.php
+0
-1
app/service/SystemBaseService.php
app/service/SystemBaseService.php
+1
-1
app/service/SystemService.php
app/service/SystemService.php
+22
-0
public/static/common/css/common.css
public/static/common/css/common.css
+3
-2
public/static/index/default/css/index.css
public/static/index/default/css/index.css
+0
-1
未找到文件。
app/common.php
浏览文件 @
3180f659
...
...
@@ -11,6 +11,25 @@
// 应用公共文件
/**
* 生成uuid
* @author Devil
* @blog http://gong.gg/
* @version 1.0.0
* @date 2021-10-30
* @desc description
*/
function
UUId
()
{
$chars
=
md5
(
uniqid
(
mt_rand
(),
true
));
$uuid
=
substr
(
$chars
,
0
,
8
)
.
'-'
.
substr
(
$chars
,
8
,
4
)
.
'-'
.
substr
(
$chars
,
12
,
4
)
.
'-'
.
substr
(
$chars
,
16
,
4
)
.
'-'
.
substr
(
$chars
,
20
,
12
);
return
$uuid
;
}
/**
* 获取常量数据
* @author Devil
...
...
app/service/ResourcesService.php
浏览文件 @
3180f659
...
...
@@ -488,7 +488,7 @@ class ResourcesService
$count
+=
count
(
$files
);
foreach
(
$files
as
$v
)
{
$temp
=
Db
::
name
(
'Attachment'
)
->
where
([
'title'
=>
$v
[
'title'
],
'hash'
=>
$v
[
'hash'
]])
->
find
();
$temp
=
Db
::
name
(
'Attachment'
)
->
where
([
'title'
=>
$v
[
'title'
],
'hash'
=>
$v
[
'hash'
]
,
'path_type'
=>
$path_type
])
->
find
();
if
(
empty
(
$temp
))
{
$ret
=
self
::
AttachmentAdd
(
$v
);
...
...
@@ -713,6 +713,12 @@ class ResourcesService
// 取参数uuid、默认空
$uid
=
input
(
'uuid'
,
''
);
// 取当前session
if
(
empty
(
$uid
))
{
$uid
=
MySession
(
'uuid'
);
}
// 用户信息
$user
=
UserService
::
LoginUserInfo
();
if
(
!
empty
(
$user
)
&&
!
empty
(
$user
[
'id'
]))
...
...
app/service/SlideService.php
浏览文件 @
3180f659
...
...
@@ -50,7 +50,6 @@ class SlideService
// 图片地址
if
(
isset
(
$v
[
'images_url'
]))
{
$v
[
'images_url_old'
]
=
$v
[
'images_url'
];
$v
[
'images_url'
]
=
ResourcesService
::
AttachmentPathViewHandle
(
$v
[
'images_url'
]);
}
...
...
app/service/SystemBaseService.php
浏览文件 @
3180f659
...
...
@@ -291,7 +291,7 @@ class SystemBaseService
}
/**
* 是否使用商品优
化
记录
* 是否使用商品优
惠
记录
* @author Devil
* @blog http://gong.gg/
* @version 1.0.0
...
...
app/service/SystemService.php
浏览文件 @
3180f659
...
...
@@ -30,6 +30,10 @@ class SystemService
*/
public
static
function
SystemBegin
(
$params
=
[])
{
// 当前用户生成uuid并存储
self
::
SetUserUUId
();
// 钩子
$hook_name
=
'plugins_service_system_begin'
;
MyEventTrigger
(
$hook_name
,
[
'hook_name'
=>
$hook_name
,
...
...
@@ -57,6 +61,24 @@ class SystemService
]);
}
/**
* 当前用户生成uuid并存储
* @author Devil
* @blog http://gong.gg/
* @version 1.0.0
* @date 2019-03-18
* @desc description
* @param [array] $params [输入参数]
*/
public
static
function
SetUserUUId
(
$params
=
[])
{
$uuid
=
MySession
(
'uuid'
);
if
(
empty
(
$uuid
))
{
MySession
(
'uuid'
,
UUId
());
}
}
/**
* 系统安装检查
* @author Devil
...
...
public/static/common/css/common.css
浏览文件 @
3180f659
...
...
@@ -30,7 +30,8 @@ ul { list-style: none; }
/**
* 表单优化
*/
.am-form-group
:hover
>
input
,
.am-form-group
:hover
>
select
,
.am-form-group
:hover
>
textarea
,
.am-form-group
:hover
.chosen-choices
,
.am-form-group
:hover
.chosen-single
{
border
:
1px
solid
#999
;
}
.am-form-group
:hover
input
,
.am-form-group
:hover
select
,
.am-form-group
:hover
textarea
,
.am-form-group
:hover
.chosen-choices
,
.am-form-group
:hover
.chosen-single
,
.am-form-group
:hover
.am-tagsinput
{
border
:
1px
solid
#999
;
}
.am-form-group
.am-tagsinput
input
{
border
:
0
!important
;}
.am-form-error
.chosen-choices
,
.am-form-error
.chosen-default
{
border
:
1px
solid
#dd514c
!important
;
}
.am-form-success
.chosen-choices
,
.am-form-success
.chosen-single
{
border
:
1px
solid
#5eb95e
!important
;
}
form
.am-form
.am-form-group-label-tips
,
form
.am-form
.am-form-group-label-tips-must
{
font-size
:
12px
;
font-weight
:
400
;
margin-left
:
10px
;
}
...
...
@@ -45,7 +46,7 @@ form.am-form .am-form-group-refreshing, .plug-file-upload-view { border-bottom:
* 插件
*/
.chosen-container
{
width
:
100%
!important
;
}
.am-tagsinput
{
display
:
block
;
padding
:
2px
5px
;
border-radius
:
2
px
;
}
.am-tagsinput
{
display
:
block
;
padding
:
3px
5px
;
border-radius
:
2px
;
min-height
:
30
px
;
}
.chosen-choices
,
.chosen-single
{
border-radius
:
2px
;
}
.chosen-choices
li
.search-field
input
[
type
=
"text"
]
{
height
:
30px
!important
;
}
.chosen-choices
li
.search-field
input
[
type
=
"text"
]
:hover
,
...
...
public/static/index/default/css/index.css
浏览文件 @
3180f659
...
...
@@ -78,7 +78,6 @@ text-align: center;float:none}
.floor
{
margin-bottom
:
15px
;
}
.floor
.goods-list
{
overflow
:
hidden
;
}
.outer-con
.describe
{
font-size
:
14px
;
font-weight
:
600
;}
.goods-title
,
.outer-con
.price
{
font-size
:
14px
;
}
.floor
.goods-list
.goods-items
{
float
:
left
;
width
:
25%
;
padding
:
10px
15px
;
border-right
:
1px
solid
;
border-bottom
:
1px
solid
;
border-color
:
#eee
;
}
.floor
.aggregation
img
{
position
:
absolute
;
top
:
auto
;
left
:
0
;
bottom
:
0
;}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录