From fe821a1687efcb6a9960a9bb23dcd95816a811e9 Mon Sep 17 00:00:00 2001 From: lc18518571399 <18518571399@163.com> Date: Wed, 15 May 2024 17:44:37 +0800 Subject: [PATCH] update --- api/app/service/user.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/api/app/service/user.js b/api/app/service/user.js index 43029b0..10420c5 100644 --- a/api/app/service/user.js +++ b/api/app/service/user.js @@ -19,7 +19,7 @@ class UserService extends Service { age: params.age, imgbase64: params.img, } - let pngRes=await this.createPng(params) + let pngRes = await this.createPng(params) // let res = await modelLocal.create(paramsLocal) returnData.hasError = false returnData.msg = "数据新增成功" @@ -35,8 +35,8 @@ class UserService extends Service { // 为了保护密钥安全,建议将密钥设置在环境变量中或者配置文件中,请参考本文凭证管理章节。 // 硬编码密钥到代码中有可能随代码泄露而暴露,有安全隐患,并不推荐。 credential: { - secretId: process.env.TENCENTCLOUD_SECRET_ID, - secretKey: process.env.TENCENTCLOUD_SECRET_KEY, + secretId: "AKIDLgwLkIcpoZ6PZht382oUMCC6wdFhMwZ8", + secretKey: "TmvwtkcYWTJ5qkEg3FIB2sokccepOsCO", }, // 产品地域 region: "ap-chengdu",