明树Git Lab

Commit b4a0a296 authored by zfp1's avatar zfp1

update

parent dcabdf24
......@@ -2,9 +2,9 @@ const userModule = require('../module/userModule')
// 配置参数(需替换)
const config = {
appId: '你的公众号APPID',
appSecret: '你的公众号APPSECRET',
redirectUri: encodeURIComponent('http://前端域名/wechat-auth') // 需与公众号配置一致
appId: 'wx0abd4eaaac30fd6b',
appSecret: '4d5f76350699ede26be00f692c0250ac',
redirectUri: encodeURIComponent('http://deepseek.bridata.com/wechatPubllicAccount') // 需与公众号配置一致
}
// 1. 生成授权链接
......@@ -20,7 +20,7 @@ async function genAuthUrl(req, res, next) {
// 2. 获取用户信息
async function getUserInfo(params) {
async function getUserInfo(req, res, next) {
try {
const { code } = req.query || req.body;
......
<p> hello 亚晶</p>
\ No newline at end of file
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