diff --git a/includes/api/ram-rest-live-controller.php b/includes/api/ram-rest-live-controller.php
index b8f3772fd36c36b0e344a01cbb9bbc8a7f2a69b9..dfbd408af716525567160e66ff3903fdce82aa8e 100644
--- a/includes/api/ram-rest-live-controller.php
+++ b/includes/api/ram-rest-live-controller.php
@@ -60,7 +60,7 @@ class RAM_REST_Live_Controller extends WP_REST_Controller{
public function refreshliveinfo($request){
$data = array(
'start' =>0,
- 'limit' =>100
+ 'limit' =>10
);
$updateResult=true;
@@ -77,7 +77,7 @@ class RAM_REST_Live_Controller extends WP_REST_Controller{
}
else{
- if ($errcode==1 || $errcode=9410000)
+ if ($errcode==1 || $errcode==9410000)
{
if(!empty(get_option('wf-liveInfo-option')))
{
@@ -95,7 +95,7 @@ class RAM_REST_Live_Controller extends WP_REST_Controller{
}
- $result = array('success' => $errcode ,'message'=>$message,'liveInfo'=>$liveInfo);
+ $result = array('success' => $errcode ,'message'=>$message,'liveInfo'=>$liveInfo,'data'=>$data);
$response = rest_ensure_response( $result );
return $response;
diff --git a/includes/ram-weixin-api.php b/includes/ram-weixin-api.php
index 3d9787e3639a9c79f4386b634cc65ce82fd3bf4f..ff3d24a10d47aa23f777d539b5b10667a981e6d1 100644
--- a/includes/ram-weixin-api.php
+++ b/includes/ram-weixin-api.php
@@ -22,7 +22,7 @@ class RAM_Weixin_API {
$access_token = array(
'access_token' => $result['access_token'],
- 'expire_time' => time() + intval( $result['expires_in'] )
+ 'expire_time' => time() + intval( $result['expires_in'])-300
);
update_option( 'ram-access_token', $access_token );
return $access_token['access_token'];
@@ -53,7 +53,7 @@ class RAM_Weixin_API {
// 发起API请求
private function request( $url, $method, $body ) {
- if(strpos($url,'msg_sec_check') !==false)
+ if(strpos($url,'msg_sec_check') !=false)
{
//内容安全检测不进行unicode转码
$body =json_encode( $body,JSON_UNESCAPED_UNICODE);
diff --git a/rest-api-to-miniprogram.php b/rest-api-to-miniprogram.php
index 1ab1b649a4648b1e87554e38cecc08e9e0a96829..4dd1c0b1997d69d2f0e9532e8fcd8ec38777f509 100644
--- a/rest-api-to-miniprogram.php
+++ b/rest-api-to-miniprogram.php
@@ -124,7 +124,7 @@ if ( ! class_exists( 'RestAPIMiniProgram' ) ) {
array_unshift( $links, $settings_link );
- $settings_link = ' ' . esc_html__( '技术支持', 'REST API TO MiniProgram' ) . '';
+ $settings_link = ' ' . esc_html__( '技术支持', 'REST API TO MiniProgram' ) . '';
array_unshift( $links, $settings_link );