Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
alading2018
ShopXO
提交
4312467a
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,体验更适合开发者的 AI 搜索 >>
提交
4312467a
编写于
2月 01, 2021
作者:
D
Devil
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
细节优化
上级
7cf301b0
变更
10
隐藏空白更改
内联
并排
Showing
10 changed file
with
108 addition
and
43 deletion
+108
-43
application/api/controller/Search.php
application/api/controller/Search.php
+1
-1
application/index/view/default/public/login_success.html
application/index/view/default/public/login_success.html
+5
-3
application/lang/zh-cn.php
application/lang/zh-cn.php
+1
-1
application/service/OrderService.php
application/service/OrderService.php
+5
-2
application/service/SearchService.php
application/service/SearchService.php
+48
-25
application/tags.php
application/tags.php
+40
-0
changelog.txt
changelog.txt
+3
-1
public/static/admin/default/css/payment.css
public/static/admin/default/css/payment.css
+0
-8
public/static/admin/default/js/goods.js
public/static/admin/default/js/goods.js
+1
-1
public/static/common/css/common.css
public/static/common/css/common.css
+4
-1
未找到文件。
application/api/controller/Search.php
浏览文件 @
4312467a
...
...
@@ -70,7 +70,7 @@ class Search extends Common
// 商品规格
$result
[
'goods_spec_list'
]
=
SearchService
::
SearchGoodsSpecValueList
(
$this
->
data_request
);
return
BaseService
::
DataReturn
(
$result
);
}
}
...
...
application/index/view/default/public/login_success.html
浏览文件 @
4312467a
...
...
@@ -21,9 +21,11 @@
<div
class=
"am-u-md-6 am-u-sm-centered am-text-center"
>
<i
class=
"am-icon-check-circle am-icon-lg"
></i>
<span
class=
"msg"
>
{{$msg}}
</span>
<div
class=
"tips-nav"
>
<a
href=
"{{$Think.__MY_URL__}}"
class=
"am-btn am-btn-secondary am-radius"
>
回到首页
</a>
</div>
{{if !isset($is_home) or $is_home eq 1}}
<div
class=
"tips-nav"
>
<a
href=
"{{$Think.__MY_URL__}}"
class=
"am-btn am-btn-secondary am-radius"
>
回到首页
</a>
</div>
{{/if}}
</div>
</div>
<!-- conntent end -->
...
...
application/lang/zh-cn.php
浏览文件 @
4312467a
...
...
@@ -391,7 +391,7 @@ return array(
'common_regex_ip'
=>
'^(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])$'
,
// url
'common_regex_url'
=>
'^http[s]?:\/\/[A-Za-z0-9]+\.[A-Za-z0-9]+[\/=\?%\-&_~`@[\]\':+!]*([^<>\"\"])*$'
,
'common_regex_url'
=>
'^http[s]?:\/\/[A-Za-z0-9
-
]+\.[A-Za-z0-9]+[\/=\?%\-&_~`@[\]\':+!]*([^<>\"\"])*$'
,
// 控制器名称
'common_regex_control'
=>
'^[A-Za-z]{1}[A-Za-z0-9_]{0,29}$'
,
...
...
application/service/OrderService.php
浏览文件 @
4312467a
...
...
@@ -636,9 +636,12 @@ class OrderService
}
// 支付金额是否小于订单金额
if
(
$pay_ret
[
'data'
][
'pay_price'
]
<
$pay_log_data
[
'total_price'
]
)
if
(
MyC
(
'common_is_pay_price_must_max_equal'
,
0
)
==
1
)
{
return
DataReturn
(
'支付金额小于日志订单金额['
.
$pay_ret
[
'data'
][
'pay_price'
]
.
'<'
.
$pay_log_data
[
'total_price'
]
.
']'
,
-
1
);
if
(
$pay_ret
[
'data'
][
'pay_price'
]
<
$pay_log_data
[
'total_price'
])
{
return
DataReturn
(
'支付金额小于日志订单金额['
.
$pay_ret
[
'data'
][
'pay_price'
]
.
'<'
.
$pay_log_data
[
'total_price'
]
.
']'
,
-
1
);
}
}
// 支付处理
...
...
application/service/SearchService.php
浏览文件 @
4312467a
...
...
@@ -117,6 +117,14 @@ class SearchService
*/
public
static
function
SearchWhereHandle
(
$params
=
[])
{
// 搜索商品条件处理钩子
$hook_name
=
'plugins_service_search_goods_list_where'
;
Hook
::
listen
(
$hook_name
,
[
'hook_name'
=>
$hook_name
,
'is_backend'
=>
true
,
'params'
=>
&
$params
,
]);
// 基础条件
$where_base
=
[
[
'g.is_delete_time'
,
'='
,
0
],
...
...
@@ -389,7 +397,12 @@ class SearchService
*/
public
static
function
ScreeningPriceList
(
$params
=
[])
{
return
Db
::
name
(
'ScreeningPrice'
)
->
field
(
'id,name,min_price,max_price'
)
->
where
([
'is_enable'
=>
1
])
->
order
(
'sort asc'
)
->
select
();
$data
=
[];
if
(
MyC
(
'home_search_is_price'
,
0
)
==
1
)
{
$data
=
Db
::
name
(
'ScreeningPrice'
)
->
field
(
'id,name,min_price,max_price'
)
->
where
([
'is_enable'
=>
1
])
->
order
(
'sort asc'
)
->
select
();
}
return
$data
;
}
/**
...
...
@@ -403,18 +416,23 @@ class SearchService
*/
public
static
function
SearchGoodsParamsValueList
(
$params
=
[])
{
// 搜索条件
$where
=
self
::
SearchWhereHandle
(
$params
);
$base_where
=
$where
[
'base'
];
$where_keywords
=
$where
[
'keywords'
];
$where_screening_price
=
$where
[
'screening_price'
];
// 一维数组、参数值去重
return
Db
::
name
(
'Goods'
)
->
alias
(
'g'
)
->
join
([
'__GOODS_CATEGORY_JOIN__'
=>
'gci'
],
'g.id=gci.goods_id'
)
->
join
([
'__GOODS_PARAMS__'
=>
'gp'
],
'g.id=gp.goods_id'
)
->
where
(
$base_where
)
->
where
(
function
(
$query
)
use
(
$where_keywords
)
{
$query
->
whereOr
(
$where_keywords
);
})
->
where
(
function
(
$query
)
use
(
$where_screening_price
)
{
$query
->
whereOr
(
$where_screening_price
);
})
->
group
(
'gp.value'
)
->
field
(
'gp.value'
)
->
select
();
$data
=
[];
if
(
MyC
(
'home_search_is_params'
,
0
)
==
1
)
{
// 搜索条件
$where
=
self
::
SearchWhereHandle
(
$params
);
$base_where
=
$where
[
'base'
];
$where_keywords
=
$where
[
'keywords'
];
$where_screening_price
=
$where
[
'screening_price'
];
// 一维数组、参数值去重
$data
=
Db
::
name
(
'Goods'
)
->
alias
(
'g'
)
->
join
([
'__GOODS_CATEGORY_JOIN__'
=>
'gci'
],
'g.id=gci.goods_id'
)
->
join
([
'__GOODS_PARAMS__'
=>
'gp'
],
'g.id=gp.goods_id'
)
->
where
(
$base_where
)
->
where
(
function
(
$query
)
use
(
$where_keywords
)
{
$query
->
whereOr
(
$where_keywords
);
})
->
where
(
function
(
$query
)
use
(
$where_screening_price
)
{
$query
->
whereOr
(
$where_screening_price
);
})
->
group
(
'gp.value'
)
->
field
(
'gp.value'
)
->
select
();
}
return
$data
;
}
/**
...
...
@@ -428,18 +446,23 @@ class SearchService
*/
public
static
function
SearchGoodsSpecValueList
(
$params
=
[])
{
// 搜索条件
$where
=
self
::
SearchWhereHandle
(
$params
);
$base_where
=
$where
[
'base'
];
$where_keywords
=
$where
[
'keywords'
];
$where_screening_price
=
$where
[
'screening_price'
];
// 一维数组、参数值去重
return
Db
::
name
(
'Goods'
)
->
alias
(
'g'
)
->
join
([
'__GOODS_CATEGORY_JOIN__'
=>
'gci'
],
'g.id=gci.goods_id'
)
->
join
([
'__GOODS_SPEC_VALUE__'
=>
'gsv'
],
'g.id=gsv.goods_id'
)
->
where
(
$base_where
)
->
where
(
function
(
$query
)
use
(
$where_keywords
)
{
$query
->
whereOr
(
$where_keywords
);
})
->
where
(
function
(
$query
)
use
(
$where_screening_price
)
{
$query
->
whereOr
(
$where_screening_price
);
})
->
group
(
'gsv.value'
)
->
field
(
'gsv.value'
)
->
select
();
$data
=
[];
if
(
MyC
(
'home_search_is_spec'
,
0
)
==
1
)
{
// 搜索条件
$where
=
self
::
SearchWhereHandle
(
$params
);
$base_where
=
$where
[
'base'
];
$where_keywords
=
$where
[
'keywords'
];
$where_screening_price
=
$where
[
'screening_price'
];
// 一维数组、参数值去重
$data
=
Db
::
name
(
'Goods'
)
->
alias
(
'g'
)
->
join
([
'__GOODS_CATEGORY_JOIN__'
=>
'gci'
],
'g.id=gci.goods_id'
)
->
join
([
'__GOODS_SPEC_VALUE__'
=>
'gsv'
],
'g.id=gsv.goods_id'
)
->
where
(
$base_where
)
->
where
(
function
(
$query
)
use
(
$where_keywords
)
{
$query
->
whereOr
(
$where_keywords
);
})
->
where
(
function
(
$query
)
use
(
$where_screening_price
)
{
$query
->
whereOr
(
$where_screening_price
);
})
->
group
(
'gsv.value'
)
->
field
(
'gsv.value'
)
->
select
();
}
return
$data
;
}
/**
...
...
application/tags.php
浏览文件 @
4312467a
...
...
@@ -32,5 +32,45 @@ return array (
'log_write'
=>
array
(
),
'plugins_service_navigation_header_handle'
=>
array
(
0
=>
'app\\plugins\\store\\Hook'
,
),
'plugins_service_users_center_left_menu_handle'
=>
array
(
0
=>
'app\\plugins\\store\\Hook'
,
),
'plugins_service_header_navigation_top_right_handle'
=>
array
(
0
=>
'app\\plugins\\store\\Hook'
,
),
'plugins_service_warehouse_goods_inventory_deduct'
=>
array
(
0
=>
'app\\plugins\\store\\Hook'
,
),
'plugins_service_warehouse_goods_inventory_rollback'
=>
array
(
0
=>
'app\\plugins\\store\\Hook'
,
),
'plugins_service_warehouse_goods_inventory_sync'
=>
array
(
0
=>
'app\\plugins\\store\\Hook'
,
),
'plugins_service_goods_field_status_update'
=>
array
(
0
=>
'app\\plugins\\store\\Hook'
,
),
'plugins_service_goods_delete'
=>
array
(
0
=>
'app\\plugins\\store\\Hook'
,
),
'plugins_service_goods_save_end'
=>
array
(
0
=>
'app\\plugins\\store\\Hook'
,
),
'plugins_service_editor_path_type_admin_goods_saveinfo'
=>
array
(
0
=>
'app\\plugins\\store\\Hook'
,
),
);
?>
\ No newline at end of file
changelog.txt
浏览文件 @
4312467a
...
...
@@ -6,9 +6,11 @@
2. 商品状态改变、订单库存扣除+回滚新增钩子
3. 支付宝支付插件优化
4. 现金支付插件优化、新增自定义支付信息
5. 订单支付状态金额控制开关
6. 搜索页面价格、参数、规格开关控制
web端
1.
1.
编辑器图片、附件、视频多选支持按照顺序选择插入编辑器
小程序
1.
...
...
public/static/admin/default/css/payment.css
已删除
100755 → 0
浏览文件 @
7cf301b0
/**
* 上传文件
*/
.am-form-file
input
[
type
=
"file"
]
{
width
:
95px
;
height
:
28px
;
margin-top
:
10px
;
}
\ No newline at end of file
public/static/admin/default/js/goods.js
浏览文件 @
4312467a
...
...
@@ -521,7 +521,7 @@ $(function()
});
// 拖拽
$
(
'
ul.goods-photo-view
'
).
dragsort
({
dragSelector
:
'
img
'
,
placeHolderTemplate
:
'
<li class="drag-sort-dotted"></li>
'
});
$
(
'
ul.goods-photo-view
'
).
dragsort
({
dragSelector
:
'
li
'
,
placeHolderTemplate
:
'
<li class="drag-sort-dotted"></li>
'
});
$
(
'
ul.content-app-items
'
).
dragsort
({
dragSelector
:
'
i.drag-sort-submit
'
,
placeHolderTemplate
:
'
<li class="drag-sort-dotted"></li>
'
});
...
...
public/static/common/css/common.css
浏览文件 @
4312467a
...
...
@@ -85,6 +85,9 @@ form.am-form .am-form-group-refreshing, .plug-file-upload-view { border-bottom:
.popup-not-title
.am-popup-inner
{
padding-top
:
0
;
background
:
#fff
;
border
:
1px
solid
#e8e6e6
;
-webkit-box-shadow
:
0
0
30px
rgba
(
0
,
0
,
0
,
0.4
);
box-shadow
:
0
0
30px
rgba
(
0
,
0
,
0
,
0.4
);
}
.popup-not-title
.am-close
{
position
:
absolute
;
...
...
@@ -216,7 +219,7 @@ iframe { border: 0; }
/**
* 公共图片上传
*/
.am-form-file
input
[
type
=
"file"
]
{
overflow
:
hidden
;
width
:
9
6px
!important
;
height
:
28px
;
top
:
10px
;
}
.am-form-file
input
[
type
=
"file"
]
{
overflow
:
hidden
;
width
:
9
0px
!important
;
height
:
28px
;
top
:
0
;
}
.am-form-file
input
.original-images-url
{
display
:
-webkit-inline-box
!important
;
width
:
calc
(
100%
-
110px
)
!important
;
background
:
#f5f5f5
!important
;
float
:
right
;
}
.am-form-file
i
.original-images-url-delete
{
position
:
absolute
;
right
:
3px
;
margin-top
:
5px
;
cursor
:
pointer
;
background
:
#f5f5f5
;
padding
:
0px
10px
;
}
.am-form-file
input
.original-images-url-delete
{
padding-right
:
35px
!important
;
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录