Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
PESCMS Ticket
Commits
f0d8921f
Commit
f0d8921f
authored
3 years ago
by
luoboss
Browse files
Options
Download
Email Patches
Plain Diff
调整微信和企业微信缓存有效期时间。
parent
dc9489ac
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Expand/weixin.php
+1
-1
Expand/weixin.php
Expand/weixinWork.php
+1
-1
Expand/weixinWork.php
with
2 additions
and
2 deletions
+2
-2
Expand/weixin.php
+
1
-
1
View file @
f0d8921f
...
...
@@ -20,7 +20,7 @@ class weixin {
$this
->
appsecret
=
$weixin_api
[
'appsecret'
];
$FileCache
=
new
FileCache
();
$FileCache
->
setTime
=
72
00
;
$FileCache
->
setTime
=
65
00
;
$result
=
$FileCache
->
loadCache
(
'access_token'
);
if
(
empty
(
$result
)){
$result
=
(
new
cURL
())
->
init
(
"https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=
{
$this
->
appID
}
&secret=
{
$this
->
appsecret
}
"
);
...
...
This diff is collapsed.
Click to expand it.
Expand/weixinWork.php
+
1
-
1
View file @
f0d8921f
...
...
@@ -24,7 +24,7 @@ class weixinWork {
$this
->
Secret
=
$weixinWork_api
[
'Secret'
];
$FileCache
=
new
FileCache
();
$FileCache
->
setTime
=
72
00
;
$FileCache
->
setTime
=
65
00
;
$result
=
$FileCache
->
loadCache
(
'weixinWork_access_token'
);
if
(
empty
(
$result
)){
$result
=
(
new
cURL
())
->
init
(
"https://qyapi.weixin.qq.com/cgi-bin/gettoken?corpid=
{
$this
->
corpid
}
&corpsecret=
$this->Secret
"
);
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help