Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
飞鱼0526
ShopXO
提交
389aa7dd
ShopXO
项目概览
飞鱼0526
/
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,发现更多精彩内容 >>
提交
389aa7dd
编写于
2月 21, 2020
作者:
D
devil
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
小程序自提地址选择 bug 修复
上级
90b78135
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
47 addition
and
8 deletion
+47
-8
application/admin/controller/Site.php
application/admin/controller/Site.php
+25
-3
application/tags.php
application/tags.php
+16
-0
sourcecode/alipay/pages/buy/buy.js
sourcecode/alipay/pages/buy/buy.js
+1
-1
sourcecode/baidu/pages/buy/buy.js
sourcecode/baidu/pages/buy/buy.js
+1
-1
sourcecode/qq/pages/buy/buy.js
sourcecode/qq/pages/buy/buy.js
+1
-1
sourcecode/toutiao/pages/buy/buy.js
sourcecode/toutiao/pages/buy/buy.js
+1
-1
sourcecode/weixin/pages/buy/buy.js
sourcecode/weixin/pages/buy/buy.js
+2
-1
未找到文件。
application/admin/controller/Site.php
浏览文件 @
389aa7dd
...
...
@@ -117,6 +117,9 @@ class Site extends Common
*/
public
function
Save
()
{
// 参数
$params
=
$_POST
;
// 导航
$nav_type
=
input
(
'nav_type'
,
'base'
);
...
...
@@ -150,6 +153,25 @@ class Site extends Common
case
'imagesverify'
:
$field_list
[]
=
'common_images_verify_rules'
;
break
;
// 站点类型
case
'sitetype'
:
// 自提地址处理
if
(
!
empty
(
$params
[
'common_self_extraction_address'
]))
{
if
(
!
is_array
(
$params
[
'common_self_extraction_address'
]))
{
$address
=
json_decode
(
$params
[
'common_self_extraction_address'
],
true
);
}
else
{
$address
=
$params
[
'common_self_extraction_address'
];
}
foreach
(
$address
as
$k
=>
$v
)
{
$address
[
$k
][
'id'
]
=
$k
;
}
$params
[
'common_self_extraction_address'
]
=
json_encode
(
$address
,
JSON_UNESCAPED_UNICODE
);
}
break
;
}
// 开始处理空值
...
...
@@ -157,15 +179,15 @@ class Site extends Common
{
foreach
(
$field_list
as
$field
)
{
if
(
!
isset
(
$
_POST
[
$field
]))
if
(
!
isset
(
$
params
[
$field
]))
{
$
_POST
[
$field
]
=
''
;
$
params
[
$field
]
=
''
;
}
}
}
// 基础配置
$ret
=
ConfigService
::
ConfigSave
(
$
_POST
);
$ret
=
ConfigService
::
ConfigSave
(
$
params
);
// 清除缓存
if
(
$ret
[
'code'
]
==
0
)
...
...
application/tags.php
浏览文件 @
389aa7dd
...
...
@@ -32,5 +32,21 @@ return array (
'log_write'
=>
array
(
),
'plugins_service_users_center_left_menu_handle'
=>
array
(
0
=>
'app\\plugins\\excellentbuyreturntocash\\Hook'
,
),
'plugins_service_header_navigation_top_right_handle'
=>
array
(
0
=>
'app\\plugins\\excellentbuyreturntocash\\Hook'
,
),
'plugins_service_buy_order_insert_end'
=>
array
(
0
=>
'app\\plugins\\excellentbuyreturntocash\\Hook'
,
),
'plugins_service_order_status_change_history_success_handle'
=>
array
(
0
=>
'app\\plugins\\excellentbuyreturntocash\\Hook'
,
),
);
?>
\ No newline at end of file
sourcecode/alipay/pages/buy/buy.js
浏览文件 @
389aa7dd
...
...
@@ -135,7 +135,7 @@ Page({
// 地址
this
.
setData
({
address
:
data
.
base
.
address
||
null
,
address_id
:
((
data
.
base
.
address
||
null
)
!=
null
&&
(
data
.
base
.
address
.
id
||
null
)
!=
null
)
?
data
.
base
.
address
.
id
:
null
,
address_id
:
((
data
.
base
.
address
||
null
)
!=
null
)
?
data
.
base
.
address
.
id
:
null
,
});
my
.
setStorage
({
key
:
app
.
data
.
cache_buy_user_address_select_key
,
...
...
sourcecode/baidu/pages/buy/buy.js
浏览文件 @
389aa7dd
...
...
@@ -116,7 +116,7 @@ Page({
// 地址
this
.
setData
({
address
:
data
.
base
.
address
||
null
,
address_id
:
(
data
.
base
.
address
||
null
)
!=
null
&&
(
data
.
base
.
address
.
id
||
null
)
!=
null
?
data
.
base
.
address
.
id
:
null
address_id
:
(
(
data
.
base
.
address
||
null
)
!=
null
)
?
data
.
base
.
address
.
id
:
null
});
swan
.
setStorage
({
key
:
app
.
data
.
cache_buy_user_address_select_key
,
...
...
sourcecode/qq/pages/buy/buy.js
浏览文件 @
389aa7dd
...
...
@@ -122,7 +122,7 @@ Page({
// 地址
this
.
setData
({
address
:
data
.
base
.
address
||
null
,
address_id
:
((
data
.
base
.
address
||
null
)
!=
null
&&
(
data
.
base
.
address
.
id
||
null
)
!=
null
)
?
data
.
base
.
address
.
id
:
null
,
address_id
:
((
data
.
base
.
address
||
null
)
!=
null
)
?
data
.
base
.
address
.
id
:
null
,
});
qq
.
setStorage
({
key
:
app
.
data
.
cache_buy_user_address_select_key
,
...
...
sourcecode/toutiao/pages/buy/buy.js
浏览文件 @
389aa7dd
...
...
@@ -122,7 +122,7 @@ Page({
// 地址
this
.
setData
({
address
:
data
.
base
.
address
||
null
,
address_id
:
((
data
.
base
.
address
||
null
)
!=
null
&&
(
data
.
base
.
address
.
id
||
null
)
!=
null
)
?
data
.
base
.
address
.
id
:
null
,
address_id
:
((
data
.
base
.
address
||
null
)
!=
null
)
?
data
.
base
.
address
.
id
:
null
,
});
tt
.
setStorage
({
key
:
app
.
data
.
cache_buy_user_address_select_key
,
...
...
sourcecode/weixin/pages/buy/buy.js
浏览文件 @
389aa7dd
...
...
@@ -122,7 +122,7 @@ Page({
// 地址
this
.
setData
({
address
:
data
.
base
.
address
||
null
,
address_id
:
((
data
.
base
.
address
||
null
)
!=
null
&&
(
data
.
base
.
address
.
id
||
null
)
!=
null
)
?
data
.
base
.
address
.
id
:
null
,
address_id
:
((
data
.
base
.
address
||
null
)
!=
null
)
?
data
.
base
.
address
.
id
:
null
,
});
wx
.
setStorage
({
key
:
app
.
data
.
cache_buy_user_address_select_key
,
...
...
@@ -184,6 +184,7 @@ Page({
if
(
this
.
data
.
common_order_is_booking
!=
1
)
{
validation
.
push
({
fields
:
'
payment_id
'
,
msg
:
'
请选择支付方式
'
});
}
if
(
app
.
fields_check
(
data
,
validation
))
{
// 加载loding
wx
.
showLoading
({
title
:
'
提交中...
'
});
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录