Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
quantum-blocks-h5
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ui
quantum-blocks-h5
Commits
097514f0
Commit
097514f0
authored
Sep 17, 2021
by
郭志伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(activity): 功能补充
parent
58e0b2af
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
16 deletions
+20
-16
activity.ts
app/controller/activity.ts
+5
-1
apollo.json
config/apollo.json
+8
-8
apollo.ssr.json
config/apollo.ssr.json
+6
-6
config.local.ts
config/config.local.ts
+1
-1
No files found.
app/controller/activity.ts
View file @
097514f0
...
...
@@ -2,6 +2,11 @@ import { Controller, Context } from 'egg';
export
default
class
ActivityController
extends
Controller
{
public
async
home
(
ctx
:
Context
)
{
// 开发环境不走redis缓存
if
(
process
.
env
.
NODE_ENV
===
'
development
'
)
{
ctx
.
body
=
await
ctx
.
renderToHtml
(
'
activity.js
'
,
{
url
:
ctx
.
url
});
return
;
}
const
redisKey
=
`quantum-blocks:page:
${
ctx
.
params
.
id
}
`
;
let
body
=
await
ctx
.
service
.
redis
.
get
(
redisKey
);
if
(
body
)
{
...
...
@@ -16,6 +21,5 @@ export default class ActivityController extends Controller {
await
ctx
.
service
.
redis
.
set
(
redisKey
,
body
);
}
ctx
.
body
=
body
;
// ctx.body = await ctx.renderToHtml('activity.js', { url: ctx.url });
}
}
\ No newline at end of file
config/apollo.json
View file @
097514f0
{
"api"
:
{
"apiHost"
:
"https://quantum-blocks-
vcc2
.liangkebang.net"
,
"h5Host"
:
"https://quantum-h5-
vcc2
.liangkebang.net"
,
"opapiHost"
:
"https://opapi-
vcc2
.liangkebang.net"
,
"passportHost"
:
"https://passportapi-
vcc2
.liangkebang.net"
,
"kdspHost"
:
"https://talos-
vcc2
.liangkebang.net"
,
"apiHost"
:
"https://quantum-blocks-
test1
.liangkebang.net"
,
"h5Host"
:
"https://quantum-h5-
test1
.liangkebang.net"
,
"opapiHost"
:
"https://opapi-
test1
.liangkebang.net"
,
"passportHost"
:
"https://passportapi-
test1
.liangkebang.net"
,
"kdspHost"
:
"https://talos-
test1
.liangkebang.net"
,
"loginUrl"
:
""
,
"h5ShopHost"
:
"https://tenet-
vcc2
.liangkebang.net/#"
"h5ShopHost"
:
"https://tenet-
test1
.liangkebang.net/#"
},
"mysql"
:
{
"low_code"
:
{
...
...
@@ -18,8 +18,8 @@
}
},
"redis"
:
{
"port"
:
"
32625
"
,
"host"
:
"
172.17.6.7
"
,
"port"
:
"
172.17.6.7
"
,
"host"
:
"
32625
"
,
"password"
:
""
,
"db"
:
0
},
...
...
config/apollo.ssr.json
View file @
097514f0
{
"apiHost"
:
"https://quantum-blocks-
vcc2
.liangkebang.net"
,
"h5Host"
:
"https://quantum-h5-
vcc2
.liangkebang.net"
,
"opapiHost"
:
"https://opapi-
vcc2
.liangkebang.net"
,
"passportHost"
:
"https://passportapi-
vcc2
.liangkebang.net"
,
"kdspHost"
:
"https://talos-
vcc2
.liangkebang.net"
,
"apiHost"
:
"https://quantum-blocks-
test1
.liangkebang.net"
,
"h5Host"
:
"https://quantum-h5-
test1
.liangkebang.net"
,
"opapiHost"
:
"https://opapi-
test1
.liangkebang.net"
,
"passportHost"
:
"https://passportapi-
test1
.liangkebang.net"
,
"kdspHost"
:
"https://talos-
test1
.liangkebang.net"
,
"loginUrl"
:
""
,
"h5ShopHost"
:
"https://tenet-
vcc2
.liangkebang.net/#"
,
"h5ShopHost"
:
"https://tenet-
test1
.liangkebang.net/#"
,
"qiniuUpHost"
:
"https://up-z0.qiniup.com"
,
"qiniuHost"
:
"https://appsync.lkbang.net"
}
config/config.local.ts
View file @
097514f0
...
...
@@ -30,7 +30,7 @@ export default (appInfo: EggAppConfig) => {
exports
.
redis
=
{
client
:
{
port
:
32625
,
// Redis port
host
:
'
172.17.
5.1
7
'
,
// Redis host
host
:
'
172.17.
6.
7
'
,
// Redis host
password
:
''
,
db
:
0
}
...
...
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