diff --git a/docker-compose.yml b/docker-compose.yml index b9f3c0de7c..52f9770e87 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,7 +1,7 @@ version: '3' services: server: - image: lfcloud/less-framework:latest + image: lessx/less-framework:latest environment: SERVER_SALT: Rewrite_Your_Own_Secret_Salt_abcdefg1234567 DB: less_app @@ -29,7 +29,7 @@ services: - less admin: - image: lfcloud/less-admin:latest + image: lessx/less-admin:latest ports: - 8000:80 networks: diff --git a/init/functions/wx-mp-login/index.js b/init/functions/wx-mp-login/index.js index f61c25d86b..17975c4ff4 100644 --- a/init/functions/wx-mp-login/index.js +++ b/init/functions/wx-mp-login/index.js @@ -1,3 +1,5 @@ +const appid = "修改为你的小程序 AppId" // 微信小程序 AppId +const appsecret = "修改为你的小程序 AppSecret" // 微信小程序 AppSecret // 主函数 exports.main = async function (ctx) { @@ -53,8 +55,6 @@ exports.main = async function (ctx) { * @return {Promise} */ async function getOpenId(code) { - const appid = "wx7aecb50b1440758d" - const appsecret = "b0095168cded167e2ad6d2b1a2878722" const api_url = `https://api.weixin.qq.com/sns/jscode2session` const param = `appid=${appid}&secret=${appsecret}&js_code=${code}&grant_type=authorization_code`