Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
wxh_internal_api
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
杨培培
wxh_internal_api
Commits
9c1b004b
Commit
9c1b004b
authored
Nov 26, 2020
by
gaomingbo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加设置discuz缓存接口
parent
1fc90dc0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
2 deletions
+16
-2
Thread.php
src/bbs/Thread.php
+14
-0
client_config_dev.php
src/client_config_dev.php
+2
-2
No files found.
src/bbs/Thread.php
View file @
9c1b004b
...
@@ -190,4 +190,18 @@ class Thread extends Client
...
@@ -190,4 +190,18 @@ class Thread extends Client
{
{
return
self
::
call
(
'thread.getThreadCommentList'
,
compact
(
'tid'
));
return
self
::
call
(
'thread.getThreadCommentList'
,
compact
(
'tid'
));
}
}
/**
* 设置discuz缓存数据
*
* @param $key
* @param $value
* @param $ttl
* @return mixed
*/
public
static
function
setDiscuzMemory
(
$key
,
$value
,
$ttl
)
{
return
self
::
call
(
'thread.setDiscuzMemory'
,
compact
(
'key'
,
'value'
,
'ttl'
));
}
}
}
\ No newline at end of file
src/client_config_dev.php
View file @
9c1b004b
...
@@ -11,7 +11,7 @@ return [
...
@@ -11,7 +11,7 @@ return [
'apiUrl'
=>
'http://u.yunya.com/api/server'
,
'apiUrl'
=>
'http://u.yunya.com/api/server'
,
'clientId'
=>
'common'
,
'clientId'
=>
'common'
,
'clientSecret'
=>
'Kuy2dVHKRWKAFRXX2l6k'
,
'clientSecret'
=>
'Kuy2dVHKRWKAFRXX2l6k'
,
'rpcServer'
=>
'192.168.
99.4:30186
'
'rpcServer'
=>
'192.168.
1.26:9503
'
],
],
'xue'
=>
[
'xue'
=>
[
'apiUrl'
=>
'http://xue.yunya.com/api'
,
'apiUrl'
=>
'http://xue.yunya.com/api'
,
...
@@ -44,7 +44,7 @@ return [
...
@@ -44,7 +44,7 @@ return [
'clientSecret'
=>
'qlOCFMUfxWjOhK2bdL88e3w2DjdhUDIA'
'clientSecret'
=>
'qlOCFMUfxWjOhK2bdL88e3w2DjdhUDIA'
],
],
'_async_server'
=>
[
'_async_server'
=>
[
'host'
=>
'192.168.99.181
'
,
'host'
=>
'192.168.0.25
'
,
'port'
=>
11300
,
'port'
=>
11300
,
'tube'
=>
'internal-api'
'tube'
=>
'internal-api'
]
]
...
...
Write
Preview
Markdown
is supported
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