Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
5
51business
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
方斌
51business
Commits
5705436a
Commit
5705436a
authored
Apr 23, 2020
by
任国军
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add random baby_name
parent
3560a38b
Pipeline
#22137
passed with stage
in 13 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
user.js
app/service/course/v5/user.js
+2
-2
No files found.
app/service/course/v5/user.js
View file @
5705436a
...
@@ -138,7 +138,7 @@ class UserService extends Service {
...
@@ -138,7 +138,7 @@ class UserService extends Service {
await
app
.
memcache
.
set
(
key
,
value
,
7
*
24
*
3600
);
await
app
.
memcache
.
set
(
key
,
value
,
7
*
24
*
3600
);
const
authToken
=
await
this
.
service
.
jwt
.
apply
({
user_uuid
:
userInfo
.
uuid
,
openid
:
userInfo
.
openid
});
const
authToken
=
await
this
.
service
.
jwt
.
apply
({
user_uuid
:
userInfo
.
uuid
,
openid
:
userInfo
.
openid
});
await
app
.
memcache
.
set
(
'course_auth_token_'
+
userInfo
.
uuid
,
authToken
,
7
*
24
*
3600
);
await
app
.
memcache
.
set
(
'course_auth_token_'
+
userInfo
.
uuid
,
authToken
,
7
*
24
*
3600
);
JSON
.
s
;
const
ret
=
{
const
ret
=
{
user_uuid
:
userInfo
.
uuid
,
user_uuid
:
userInfo
.
uuid
,
openid
:
userInfo
.
openid
,
openid
:
userInfo
.
openid
,
...
@@ -269,7 +269,7 @@ class UserService extends Service {
...
@@ -269,7 +269,7 @@ class UserService extends Service {
// 上传用户宝宝信息
// 上传用户宝宝信息
async
addUserBaby
(
input
)
{
async
addUserBaby
(
input
)
{
const
{
ctx
}
=
this
;
const
{
ctx
}
=
this
;
const
name
=
input
.
baby_name
||
'
'
;
const
name
=
input
.
baby_name
||
'
qxk'
+
String
(
await
this
.
getRandomNumber
(
6
))
;
const
age
=
input
.
baby_age
||
''
;
const
age
=
input
.
baby_age
||
''
;
const
sex
=
input
.
baby_sex
||
''
;
const
sex
=
input
.
baby_sex
||
''
;
const
birth
=
input
.
baby_birth
||
''
;
const
birth
=
input
.
baby_birth
||
''
;
...
...
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