Commit 5705436a authored by 任国军's avatar 任国军

add random baby_name

parent 3560a38b
Pipeline #22137 passed with stage
in 13 seconds
......@@ -138,7 +138,7 @@ class UserService extends Service {
await app.memcache.set(key, value, 7 * 24 * 3600);
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);
JSON.s;
const ret = {
user_uuid: userInfo.uuid,
openid: userInfo.openid,
......@@ -269,7 +269,7 @@ class UserService extends Service {
// 上传用户宝宝信息
async addUserBaby(input) {
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 sex = input.baby_sex || '';
const birth = input.baby_birth || '';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment