Skip to content

Commit

Permalink
fix: remove wxmp app secret
Browse files Browse the repository at this point in the history
  • Loading branch information
maslow committed Jun 21, 2021
1 parent 82a47d6 commit 4671c36
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -29,7 +29,7 @@ services:
- less

admin:
image: lfcloud/less-admin:latest
image: lessx/less-admin:latest
ports:
- 8000:80
networks:
Expand Down
4 changes: 2 additions & 2 deletions init/functions/wx-mp-login/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
const appid = "修改为你的小程序 AppId" // 微信小程序 AppId
const appsecret = "修改为你的小程序 AppSecret" // 微信小程序 AppSecret

// 主函数
exports.main = async function (ctx) {
Expand Down Expand Up @@ -53,8 +55,6 @@ exports.main = async function (ctx) {
* @return {Promise<string>}
*/
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`
Expand Down

0 comments on commit 4671c36

Please sign in to comment.