From 2da52977a22f578d45cda0b01438876583513f8c Mon Sep 17 00:00:00 2001 From: jiangyong27 Date: Mon, 17 Mar 2025 17:35:08 +0800 Subject: [PATCH] auth_user --- server/api/staff.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/api/staff.go b/server/api/staff.go index 247db06..fa33b83 100644 --- a/server/api/staff.go +++ b/server/api/staff.go @@ -87,6 +87,7 @@ func (s *StaffUser) From(m *model.StaffUser) { s.PayeeBankCard = payee.BankCard s.PayeeAlipayUid = payee.AlipayUid - s.PayeeAlipayAuthUrl = fmt.Sprintf("https://openauth.alipay.com/oauth2/publicAppAuthorize.htm?app_id=2021004108682468&scope=auth_base&state=%d&redirect_uri=https://e.batiao8.com/api/payment/auth/alipay", m.Id) + //s.PayeeAlipayAuthUrl = fmt.Sprintf("https://openauth.alipay.com/oauth2/publicAppAuthorize.htm?app_id=2021004108682468&scope=auth_base&state=%d&redirect_uri=https://e.batiao8.com/api/payment/auth/alipay", m.Id) + s.PayeeAlipayAuthUrl = fmt.Sprintf("https://openauth.alipay.com/oauth2/publicAppAuthorize.htm?app_id=2021004108682468&scope=auth_user&state=%d&redirect_uri=https://e.batiao8.com/api/payment/auth/alipay", m.Id) s.PayeeAlipayAuthQrcode, _ = butil.CreateQrcodeBase64V2(s.PayeeAlipayAuthUrl, qrcode.Low, 300) }