Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
ijianbo
rest Api To Miniprogram
提交
a1ea0ae4
rest Api To Miniprogram
项目概览
ijianbo
/
rest Api To Miniprogram
通知
22
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
rest Api To Miniprogram
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
a1ea0ae4
编写于
3月 13, 2022
作者:
ijianbo
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
增加版权声明配置
上级
0ce99d5a
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
24 addition
and
3 deletion
+24
-3
includes/filter/ram-custom-post-fields.php
includes/filter/ram-custom-post-fields.php
+4
-0
includes/ram-util.php
includes/ram-util.php
+4
-1
includes/settings/wp-wechat-config.php
includes/settings/wp-wechat-config.php
+16
-2
未找到文件。
includes/filter/ram-custom-post-fields.php
浏览文件 @
a1ea0ae4
...
...
@@ -77,6 +77,10 @@ function custom_post_fields( $data, $post, $request) {
$praiseWord
=
empty
(
$praiseWord
)
?
'鼓励'
:
$praiseWord
;
$_data
[
'praiseWord'
]
=
$praiseWord
;
$copyright_state
=
empty
(
get_option
(
'wf_copyright_state'
))
?
''
:
get_option
(
'wf_copyright_state'
);
$_data
[
'copyright_state'
]
=
$copyright_state
;
//获取广告参数
$detailAdId
=
empty
(
get_option
(
'wf_detail_ad_id'
))
?
''
:
get_option
(
'wf_detail_ad_id'
);
$detailAd
=
empty
(
get_option
(
'wf_detail_ad'
))
?
'0'
:
"1"
;
...
...
includes/ram-util.php
浏览文件 @
a1ea0ae4
...
...
@@ -401,7 +401,7 @@ function time_tran($the_time){
*
* @return int 成功0,失败返回对应的错误码
*/
function
decrypt_data
(
$appid
,
$sessionKey
,
$encryptedData
,
$iv
,
&
$data
)
{
function
raw_
decrypt_data
(
$appid
,
$sessionKey
,
$encryptedData
,
$iv
,
&
$data
)
{
$errors
=
array
(
'OK'
=>
0
,
...
...
@@ -757,6 +757,9 @@ function getPosts($ids)
$praiseWord
=
get_option
(
'wf_praise_word'
);
$praiseWord
=
empty
(
$praiseWord
)
?
'鼓励'
:
$praiseWord
;
$_data
[
'praiseWord'
]
=
$praiseWord
;
$copyright_state
=
empty
(
get_option
(
'wf_copyright_state'
))
?
''
:
get_option
(
'wf_copyright_state'
);
$_data
[
'copyright_state'
]
=
$copyright_state
;
//获取广告参数
$detailAdId
=
empty
(
get_option
(
'wf_detail_ad_id'
))
?
''
:
get_option
(
'wf_detail_ad_id'
);
...
...
includes/settings/wp-wechat-config.php
浏览文件 @
a1ea0ae4
...
...
@@ -72,6 +72,8 @@ function register_weixinappsettings() {
register_setting
(
'weixinapp-group'
,
'enable_hot_interstitial_ad'
);
register_setting
(
'weixinapp-group'
,
'enable_comments_interstitial_ad'
);
register_setting
(
'weixinapp-group'
,
'enable_live_interstitial_ad'
);
register_setting
(
'weixinapp-group'
,
'wf_copyright_state'
);
...
...
@@ -116,6 +118,11 @@ function weixinapp_settings_page() {
if
(
!
empty
(
$_REQUEST
[
'settings-updated'
]))
{
if
(
function_exists
(
'MRAC'
))
{
$cachedata
=
MRAC
()
->
cacheManager
->
clear_cache
();
}
echo
'<div id="message" class="updated fade"><p><strong>设置已保存</strong></p></div>'
;
}
...
...
@@ -256,16 +263,23 @@ if (version_compare(PHP_VERSION, '5.6.0', '<=') )
<td>
<textarea
name=
"wf_downloadfile_domain"
id=
"wf_downloadfile_domain"
class=
"large-text code"
rows=
"3"
>
<?php
echo
esc_attr
(
get_option
(
'wf_downloadfile_domain'
)
);
?>
</textarea>
<br/><p
style=
"color: #959595; display:inline"
>
请输入域名,用英文逗号分隔
</p></td>
</tr>
<tr
valign=
"top"
>
<th
scope=
"row"
>
业务域名
</th>
<td>
<textarea
name=
"wf_business_domain"
id=
"wf_business_domain"
class=
"large-text code"
rows=
"3"
>
<?php
echo
esc_attr
(
get_option
(
'wf_business_domain'
)
);
?>
</textarea>
<br/><p
style=
"color: #959595; display:inline"
>
请输入域名,用英文逗号分隔。仅支持企业主体小程序。
</p></td>
</tr>
<tr
valign=
"top"
>
<th
scope=
"row"
>
版权声明
</th>
<td>
<textarea
name=
"wf_copyright_state"
id=
"wf_copyright_state"
class=
"large-text code"
rows=
"3"
>
<?php
echo
esc_attr
(
get_option
(
'wf_copyright_state'
)
);
?>
</textarea>
<br/><p
style=
"color: #959595; display:inline"
>
支持html标签,将显示在文章结尾,不想显示请留空。
</p></td>
</tr>
</table>
</div>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录