Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
jcy2004x
ShopXO
提交
6e0a5a19
ShopXO
项目概览
jcy2004x
/
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,发现更多精彩内容 >>
提交
6e0a5a19
编写于
5月 24, 2021
作者:
D
Devil
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
优化
上级
3916ea54
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
109 addition
and
8 deletion
+109
-8
application/common.php
application/common.php
+57
-1
application/index/view/default/user/login_content.html
application/index/view/default/user/login_content.html
+3
-3
application/tags.php
application/tags.php
+45
-0
config/shopxo.php
config/shopxo.php
+1
-1
public/static/index/default/css/common.css
public/static/index/default/css/common.css
+2
-2
sourcecode/baidu/default/app.js
sourcecode/baidu/default/app.js
+1
-1
未找到文件。
application/common.php
浏览文件 @
6e0a5a19
...
...
@@ -242,6 +242,62 @@ function IsWeixinEnv()
return
(
!
empty
(
$_SERVER
[
'HTTP_USER_AGENT'
])
&&
stripos
(
$_SERVER
[
'HTTP_USER_AGENT'
],
'MicroMessenger'
)
!==
false
);
}
/**
* 是否微信环境
* @author Devil
* @blog http://gong.gg/
* @version 1.0.0
* @date 2020-08-26
* @desc description
* @return [boolean] [否false, 是true]
*/
function
IsDingdingEnv
()
{
return
(
!
empty
(
$_SERVER
[
'HTTP_USER_AGENT'
])
&&
stripos
(
$_SERVER
[
'HTTP_USER_AGENT'
],
'DingTalk'
)
!==
false
);
}
/**
* 是否QQ环境
* @author Devil
* @blog http://gong.gg/
* @version 1.0.0
* @date 2020-08-26
* @desc description
* @return [boolean] [否false, 是true]
*/
function
IsQQEnv
()
{
return
(
!
empty
(
$_SERVER
[
'HTTP_USER_AGENT'
])
&&
stripos
(
$_SERVER
[
'HTTP_USER_AGENT'
],
'MQQBrowser'
)
!==
false
);
}
/**
* 是否支付宝环境
* @author Devil
* @blog http://gong.gg/
* @version 1.0.0
* @date 2020-08-26
* @desc description
* @return [boolean] [否false, 是true]
*/
function
IsAlipayEnv
()
{
return
(
!
empty
(
$_SERVER
[
'HTTP_USER_AGENT'
])
&&
stripos
(
$_SERVER
[
'HTTP_USER_AGENT'
],
'AlipayClient'
)
!==
false
);
}
/**
* 是否新浪微博环境
* @author Devil
* @blog http://gong.gg/
* @version 1.0.0
* @date 2020-08-26
* @desc description
* @return [boolean] [否false, 是true]
*/
function
IsWeiboEnv
()
{
return
(
!
empty
(
$_SERVER
[
'HTTP_USER_AGENT'
])
&&
stripos
(
$_SERVER
[
'HTTP_USER_AGENT'
],
'Weibo'
)
!==
false
);
}
/**
* 笛卡尔积生成规格
* @author Devil
...
...
@@ -1755,7 +1811,7 @@ function CurlPost($url, $post, $is_json = false, $timeout = 30)
}
else
{
curl_setopt
(
$ch
,
CURLOPT_POSTFIELDS
,
http_build_query
(
$post
));
curl_setopt
(
$ch
,
CURLOPT_HTTPHEADER
,
array
(
"Content-Type: application/x-www-form-urlencoded"
,
"Content-Type: application/x-www-form-urlencoded
; charset=utf-8
"
,
"cache-control: no-cache"
)
);
...
...
application/index/view/default/user/login_content.html
浏览文件 @
6e0a5a19
...
...
@@ -107,7 +107,7 @@
</div>
{{/if}}
<div
class=
"am-padding-horizontal-
xs
am-padding-vertical-xs am-margin-bottom-sm am-nbfc"
>
<div
class=
"am-padding-horizontal-
lg
am-padding-vertical-xs am-margin-bottom-sm am-nbfc"
>
<!-- 用户登录内底部钩子 -->
{{if isset($shopxo_is_develop) and $shopxo_is_develop eq true}}
<div
class=
"plugins-tag"
>
...
...
@@ -123,8 +123,8 @@
{{/if}}
<!-- 右侧快捷入口 -->
<div
class=
"am-fr"
>
<a
href=
"{{:MyUrl('index/user/reginfo')}}"
target=
"_blank"
class=
"am-text-danger am-margin-right-sm"
>
免费
注册
</a>
<a
href=
"{{:MyUrl('index/user/forgetpwdinfo')}}"
target=
"_blank"
>
忘记
密码
</a>
<a
href=
"{{:MyUrl('index/user/reginfo')}}"
target=
"_blank"
class=
"am-text-danger am-margin-right-sm"
>
注册
</a>
<a
href=
"{{:MyUrl('index/user/forgetpwdinfo')}}"
target=
"_blank"
>
找回
密码
</a>
</div>
</div>
</div>
...
...
application/tags.php
浏览文件 @
6e0a5a19
...
...
@@ -42,12 +42,14 @@ return array (
1
=>
'app\\plugins\\excellentbuyreturntocash\\Hook'
,
2
=>
'app\\plugins\\coupon\\Hook'
,
3
=>
'app\\plugins\\distribution\\Hook'
,
4
=>
'app\\plugins\\exchangerate\\Hook'
,
),
'plugins_js'
=>
array
(
0
=>
'app\\plugins\\shop\\Hook'
,
1
=>
'app\\plugins\\coupon\\Hook'
,
2
=>
'app\\plugins\\distribution\\Hook'
,
3
=>
'app\\plugins\\exchangerate\\Hook'
,
),
'plugins_service_navigation_header_handle'
=>
array
(
...
...
@@ -67,6 +69,7 @@ return array (
1
=>
'app\\plugins\\excellentbuyreturntocash\\Hook'
,
2
=>
'app\\plugins\\coupon\\Hook'
,
3
=>
'app\\plugins\\distribution\\Hook'
,
4
=>
'app\\plugins\\exchangerate\\Hook'
,
),
'plugins_service_goods_save_handle'
=>
array
(
...
...
@@ -128,6 +131,7 @@ return array (
array
(
0
=>
'app\\plugins\\shop\\Hook'
,
1
=>
'app\\plugins\\distribution\\Hook'
,
2
=>
'app\\plugins\\exchangerate\\Hook'
,
),
'plugins_module_form_admin_goods_index'
=>
array
(
...
...
@@ -169,6 +173,7 @@ return array (
'plugins_service_user_register_end'
=>
array
(
0
=>
'app\\plugins\\coupon\\Hook'
,
1
=>
'app\\plugins\\thirdpartylogin\\Hook'
,
),
'plugins_service_base_data_return_api_goods_detail'
=>
array
(
...
...
@@ -205,6 +210,7 @@ return array (
'plugins_service_goods_spec_base'
=>
array
(
0
=>
'app\\plugins\\distribution\\Hook'
,
1
=>
'app\\plugins\\exchangerate\\Hook'
,
),
'plugins_view_goods_detail_panel_price_top'
=>
array
(
...
...
@@ -221,30 +227,69 @@ return array (
'plugins_service_quick_navigation_pc'
=>
array
(
0
=>
'app\\plugins\\distribution\\Hook'
,
1
=>
'app\\plugins\\exchangerate\\Hook'
,
),
'plugins_service_quick_navigation_h5'
=>
array
(
0
=>
'app\\plugins\\distribution\\Hook'
,
1
=>
'app\\plugins\\exchangerate\\Hook'
,
),
'plugins_service_quick_navigation_weixin'
=>
array
(
0
=>
'app\\plugins\\distribution\\Hook'
,
1
=>
'app\\plugins\\exchangerate\\Hook'
,
),
'plugins_service_quick_navigation_alipay'
=>
array
(
0
=>
'app\\plugins\\distribution\\Hook'
,
1
=>
'app\\plugins\\exchangerate\\Hook'
,
),
'plugins_service_quick_navigation_baidu'
=>
array
(
0
=>
'app\\plugins\\distribution\\Hook'
,
1
=>
'app\\plugins\\exchangerate\\Hook'
,
),
'plugins_service_quick_navigation_qq'
=>
array
(
0
=>
'app\\plugins\\distribution\\Hook'
,
1
=>
'app\\plugins\\exchangerate\\Hook'
,
),
'plugins_service_quick_navigation_toutiao'
=>
array
(
0
=>
'app\\plugins\\distribution\\Hook'
,
1
=>
'app\\plugins\\exchangerate\\Hook'
,
),
'plugins_view_common_bottom'
=>
array
(
0
=>
'app\\plugins\\exchangerate\\Hook'
,
),
'plugins_service_currency_data'
=>
array
(
0
=>
'app\\plugins\\exchangerate\\Hook'
,
),
'plugins_view_user_login_inside_bottom'
=>
array
(
0
=>
'app\\plugins\\thirdpartylogin\\Hook'
,
),
'plugins_view_user_reg_info_inside_bottom'
=>
array
(
0
=>
'app\\plugins\\thirdpartylogin\\Hook'
,
),
'plugins_view_user_login_info_top'
=>
array
(
0
=>
'app\\plugins\\thirdpartylogin\\Hook'
,
),
'plugins_view_user_reg_info'
=>
array
(
0
=>
'app\\plugins\\thirdpartylogin\\Hook'
,
),
'plugins_service_user_login_end'
=>
array
(
0
=>
'app\\plugins\\thirdpartylogin\\Hook'
,
),
'plugins_service_users_personal_show_field_list_handle'
=>
array
(
0
=>
'app\\plugins\\thirdpartylogin\\Hook'
,
),
);
?>
\ No newline at end of file
config/shopxo.php
浏览文件 @
6e0a5a19
...
...
@@ -28,7 +28,7 @@ if(substr($cdn_public_host, -1) != DS)
// 配置信息
return
[
// 开发模式
'is_develop'
=>
fals
e
,
'is_develop'
=>
tru
e
,
// 默认编码
'default_charset'
=>
'utf-8'
,
...
...
public/static/index/default/css/common.css
浏览文件 @
6e0a5a19
...
...
@@ -448,9 +448,9 @@ ul.am-dropdown-content > .am-active > a:focus,
@media
only
screen
and
(
min-width
:
641px
)
{
.common-login-modal
{
max-width
:
400px
;
height
:
4
3
0px
;
height
:
4
4
0px
;
left
:
calc
(
50%
-
200px
);
top
:
calc
(
50%
-
2
15
px
);
top
:
calc
(
50%
-
2
20
px
);
margin-left
:
0
;
margin-top
:
0
;
}
...
...
sourcecode/baidu/default/app.js
浏览文件 @
6e0a5a19
...
...
@@ -259,7 +259,7 @@ App({
// 加载loding
swan
.
showLoading
({
title
:
"
授权中...
"
});
swan
.
login
({
swan
.
getLoginCode
({
success
:
function
(
res
)
{
swan
.
request
({
url
:
self
.
get_request_url
(
"
baiduuserauth
"
,
"
user
"
),
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录