Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
starsw001
ShopXO
提交
b0dc1309
ShopXO
项目概览
starsw001
/
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 搜索 >>
提交
b0dc1309
编写于
3月 04, 2022
作者:
G
gongfuxiang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
细节优化
上级
03afcf30
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
49 addition
and
8 deletion
+49
-8
app/common.php
app/common.php
+37
-3
config/shopxo.php
config/shopxo.php
+7
-2
public/static/admin/default/css/admin.logininfo.css
public/static/admin/default/css/admin.logininfo.css
+4
-1
public/static/common/css/common.css
public/static/common/css/common.css
+1
-1
public/static/index/default/js/user.js
public/static/index/default/js/user.js
+0
-1
未找到文件。
app/common.php
浏览文件 @
b0dc1309
...
...
@@ -514,6 +514,20 @@ function MyInput($key = null, $default = null)
}
}
// 非数组则检查是否为json和xml数据
if
(
!
is_array
(
$params
))
{
if
(
IsJson
(
$params
))
{
$params
=
json_decode
(
$params
,
true
);
}
else
{
if
(
XmlParser
(
$params
))
{
$params
=
XmlArray
(
$params
);
}
}
}
// 是否指定key
if
(
!
empty
(
$key
)
&&
is_array
(
$params
))
{
...
...
@@ -2189,13 +2203,33 @@ function FsockopenPost($url, $data = '')
* @blog http://gong.gg/
* @version 0.0.1
* @datetime 2016-12-03T21:58:54+0800
* @param [xml]
$xmlstring
[xml数据]
* @param [xml]
$xml
[xml数据]
* @return [array] [array数组]
*/
function
XmlArray
(
$xml
string
)
{
return
json_decode
(
json_encode
(
(
array
)
simplexml_load_string
(
$xmlstring
)),
true
);
function
XmlArray
(
$xml
)
{
return
json_decode
(
json_encode
(
simplexml_load_string
(
$xml
,
'SimpleXMLElement'
,
LIBXML_NOCDATA
)),
true
);
}
/**
* 判断字符串是否为xml格式
* @author Devil
* @blog http://gong.gg/
* @version 1.0.0
* @date 2019-01-07
* @desc description
* @param [string] $string [字符串]
*/
function
XmlParser
(
$string
)
{
$xml_parser
=
xml_parser_create
();
if
(
!
xml_parse
(
$xml_parser
,
$string
,
true
))
{
xml_parser_free
(
$xml_parser
);
return
false
;
}
else
{
return
(
json_decode
(
json_encode
(
simplexml_load_string
(
$string
)),
true
));
}
}
/**
* [CheckMobile 手机号码格式校验]
...
...
config/shopxo.php
浏览文件 @
b0dc1309
...
...
@@ -139,12 +139,17 @@ return [
// 不删除的支付方式
'payment_cannot_deleted_list'
=>
[
'DeliveryPayment'
,
'CashPayment'
,
'DeliveryPayment'
,
'ChargePayment'
,
],
// 线下支付方式
'under_line_list'
=>
[
'CashPayment'
,
'DeliveryPayment'
],
'under_line_list'
=>
[
'CashPayment'
,
'DeliveryPayment'
,
'ChargePayment'
,
],
// 小程序平台
'mini_app_type_list'
=>
[
'weixin'
,
'alipay'
,
'baidu'
,
'toutiao'
,
'qq'
],
...
...
public/static/admin/default/css/admin.logininfo.css
浏览文件 @
b0dc1309
...
...
@@ -66,7 +66,10 @@ body {
font-size
:
60px
;
font-weight
:
500
;
color
:
#0e90d2
;
text-shadow
:
-2px
1px
#fff
;
text-shadow
:
-1px
1px
#fff
;
}
.admin-login
form
{
padding
:
5px
10px
;
}
.admin-login
.am-form-group
{
padding
:
5px
0
!important
;
...
...
public/static/common/css/common.css
浏览文件 @
b0dc1309
...
...
@@ -893,6 +893,6 @@ form .am-panel .business-form-group:last-child {
vertical-align
:
middle
;
}
.warehouse-item-container
.warehouse-icon
{
wid
ows
:
14px
;
wid
th
:
14px
;
height
:
14px
;
}
\ No newline at end of file
public/static/index/default/js/user.js
浏览文件 @
b0dc1309
...
...
@@ -136,5 +136,4 @@ $(function()
$accounts
.
focus
();
}
});
});
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录