Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
starsw001
ShopXO
提交
1c878b4b
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 搜索 >>
提交
1c878b4b
编写于
4月 21, 2020
作者:
D
devil
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
优化微信小程序直播可配置
上级
27dd2a22
变更
4
展开全部
隐藏空白更改
内联
并排
Showing
4 changed file
with
37 addition
and
14 deletion
+37
-14
application/admin/view/default/appconfig/weixinmini.html
application/admin/view/default/appconfig/weixinmini.html
+9
-0
application/service/AppMiniService.php
application/service/AppMiniService.php
+22
-3
config/shopxo.sql
config/shopxo.sql
+5
-5
sourcecode/weixin/app.json
sourcecode/weixin/app.json
+1
-6
未找到文件。
application/admin/view/default/appconfig/weixinmini.html
浏览文件 @
1c878b4b
...
...
@@ -18,6 +18,15 @@
</select>
</div>
<div
class=
"am-form-group"
>
<label>
{{$data.common_app_weixin_liveplayer.name}}
<span
class=
"am-form-group-label-tips"
>
{{$data.common_app_weixin_liveplayer.describe}}
</span></label>
<select
name=
"{{$data.common_app_weixin_liveplayer.only_tag}}"
class=
"am-radius chosen-select"
data-validation-message=
"{{$data.common_app_weixin_liveplayer.error_tips}}"
required
>
{{foreach $common_is_text_list as $v}}
<option
value=
"{{$v.id}}"
{{
if
isset
($
data
['
common_app_weixin_liveplayer
']['
value
'])
and
$
data
['
common_app_weixin_liveplayer
']['
value
']
eq
$
v
['
id
']}}
selected
{{/
if
}}
>
{{$v.name}}
</option>
{{/foreach}}
</select>
</div>
<div
class=
"am-form-group"
>
<label>
{{$data.common_app_is_poster_share.name}}
<span
class=
"am-form-group-label-tips"
>
{{$data.common_app_is_poster_share.describe}}
</span></label>
<select
name=
"{{$data.common_app_is_poster_share.only_tag}}"
class=
"am-radius chosen-select"
data-validation-message=
"{{$data.common_app_is_poster_share.error_tips}}"
required
>
...
...
application/service/AppMiniService.php
浏览文件 @
1c878b4b
...
...
@@ -215,9 +215,8 @@ class AppMiniService
*/
private
static
function
ExtendHandleWeixin
(
$new_dir
)
{
// 是否开启好物推荐功能
$common_app_is_good_thing
=
MyC
(
'common_app_is_good_thing'
,
0
);
if
(
$common_app_is_good_thing
==
1
)
// 启用好物推荐
if
(
MyC
(
'common_app_is_good_thing'
,
0
)
==
1
)
{
// app.json
$file
=
$new_dir
.
DS
.
'app.json'
;
...
...
@@ -246,6 +245,26 @@ class AppMiniService
}
}
}
// 启用直播
if
(
MyC
(
'common_app_weixin_liveplayer'
,
0
)
==
1
)
{
// app.json
$file
=
$new_dir
.
DS
.
'app.json'
;
$data
=
json_decode
(
file_get_contents
(
$file
),
true
);
if
(
is_array
(
$data
)
&&
isset
(
$data
[
'plugins'
]))
{
$data
[
'plugins'
][
'live-player-plugin'
]
=
[
'version'
=>
'1.0.5'
,
'provider'
=>
'wx2b03c6e691cd7370'
,
];
if
(
file_put_contents
(
$file
,
JsonFormat
(
$data
))
===
false
)
{
return
DataReturn
(
'直播配置失败'
,
-
50
);
}
}
}
return
DataReturn
(
'配置成功'
,
0
);
}
...
...
config/shopxo.sql
浏览文件 @
1c878b4b
此差异已折叠。
点击以展开。
sourcecode/weixin/app.json
浏览文件 @
1c878b4b
...
...
@@ -114,12 +114,7 @@
"request"
:
10000
,
"downloadFile"
:
10000
},
"plugins"
:
{
"live-player-plugin"
:
{
"version"
:
"1.0.5"
,
"provider"
:
"wx2b03c6e691cd7370"
}
},
"plugins"
:
{},
"debug"
:
true
,
"sitemapLocation"
:
"sitemap.json"
}
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录