From 67693fa7dd25f2b63e5c4336db5cf06f66572c7f Mon Sep 17 00:00:00 2001 From: Havoc412 <2993167370@qq.com> Date: Mon, 21 Oct 2024 07:37:56 +0800 Subject: [PATCH] link UI --- app/service/weixin/code2Session.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/app/service/weixin/code2Session.go b/app/service/weixin/code2Session.go index 53583c8..2d2364d 100644 --- a/app/service/weixin/code2Session.go +++ b/app/service/weixin/code2Session.go @@ -16,13 +16,13 @@ type Response struct { } func Code2Session(js_code string) (*Response, error) { + // return &Response{ // TEST + // OpenId: "open_id", + // SessionKey: "session_key", + // Errcode: 0, + // Errmsg: "ok", + // }, nil - return &Response{ // TEST - OpenId: "open_id", - SessionKey: "session_key", - Errcode: 0, - Errmsg: "ok", - }, nil appid := variable.ConfigYml.GetString("Weixin.AppId") appSecret := variable.ConfigYml.GetString("Weixin.AppSecret") grantType := variable.ConfigYml.GetString("Weixin.Code2Session.GrantType")