diff --git a/builds/docker-compose-test.yml b/builds/docker-compose-test.yml index 72f5cee3a..bbc9e9322 100644 --- a/builds/docker-compose-test.yml +++ b/builds/docker-compose-test.yml @@ -22,7 +22,7 @@ services: limits: memory: 800MB healthcheck: - test: ["CMD", "curl", "-f", "http://localhost:48080/admin-api/actuator/health"] + test: ["CMD", "curl", "-f", "http://localhost:48080/actuator/health"] timeout: 30s interval: 45s retries: 3 \ No newline at end of file diff --git a/yudao-module-mall/yudao-module-shop-biz/src/main/java/cn/iocoder/yudao/module/shop/controller/app/buy/TopUpOrderController.java b/yudao-module-mall/yudao-module-shop-biz/src/main/java/cn/iocoder/yudao/module/shop/controller/app/buy/TopUpOrderController.java index 8db055756..9e1dad4cd 100644 --- a/yudao-module-mall/yudao-module-shop-biz/src/main/java/cn/iocoder/yudao/module/shop/controller/app/buy/TopUpOrderController.java +++ b/yudao-module-mall/yudao-module-shop-biz/src/main/java/cn/iocoder/yudao/module/shop/controller/app/buy/TopUpOrderController.java @@ -1,6 +1,7 @@ package cn.iocoder.yudao.module.shop.controller.app.buy; import cn.iocoder.yudao.framework.common.pojo.CommonResult; +import cn.iocoder.yudao.framework.security.core.annotations.PreAuthenticated; import cn.iocoder.yudao.module.shop.request.member.OrderContentRequest; import cn.iocoder.yudao.module.shop.request.member.RefundRequest; import cn.iocoder.yudao.module.shop.response.member.InitOrderResponse; @@ -9,11 +10,9 @@ import io.swagger.v3.oas.annotations.Operation; import io.swagger.v3.oas.annotations.tags.Tag; import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.RestController; +import org.springframework.web.bind.annotation.*; +import javax.annotation.security.PermitAll; import javax.servlet.http.HttpServletRequest; import javax.validation.Valid; @@ -32,22 +31,21 @@ public class TopUpOrderController { @Autowired private StoreOrderService storeOrderService; - + @PreAuthenticated @Operation(summary = "会员充值") @RequestMapping(value = "/memberTopUp", method = RequestMethod.POST) public CommonResult memberTopUp(@Valid @RequestBody OrderContentRequest request, HttpServletRequest servletRequest) throws Exception { log.info("initOrder会员充值===>{}", request); return CommonResult.success(storeOrderService.memberTopUp(request, servletRequest)); } - + @PreAuthenticated @Operation(summary = "退款") @RequestMapping(value = "/memberRefund", method = RequestMethod.POST) public CommonResult memberRefund(@Valid @RequestBody RefundRequest request, HttpServletRequest servletRequest) throws Exception { log.info("memberRefund会员退款===>{}", request); return CommonResult.success(storeOrderService.memberRefund(request, servletRequest)); } - - + @PreAuthenticated @Operation(summary = "申请退款") @RequestMapping(value = "/memberApplyRefund", method = RequestMethod.POST) public CommonResult memberApplyRefund(@Valid @RequestBody RefundRequest request){ @@ -55,4 +53,13 @@ public class TopUpOrderController { return CommonResult.success(storeOrderService.memberApplyRefund(request)); } + + @PermitAll + @Operation(summary = "获取openid") + @RequestMapping(value = "/getOpenId", method = RequestMethod.GET) + public CommonResult getOpenId(@RequestParam(value = "code") String code){ + log.info("获取openid===>{}", code); + return CommonResult.success(storeOrderService.getOpenId(code)); + } + } diff --git a/yudao-module-mall/yudao-module-shop-biz/src/main/java/cn/iocoder/yudao/module/shop/service/order/StoreOrderService.java b/yudao-module-mall/yudao-module-shop-biz/src/main/java/cn/iocoder/yudao/module/shop/service/order/StoreOrderService.java index 295f253ad..c14a08a89 100644 --- a/yudao-module-mall/yudao-module-shop-biz/src/main/java/cn/iocoder/yudao/module/shop/service/order/StoreOrderService.java +++ b/yudao-module-mall/yudao-module-shop-biz/src/main/java/cn/iocoder/yudao/module/shop/service/order/StoreOrderService.java @@ -403,4 +403,6 @@ public interface StoreOrderService extends IService { Boolean wxPayNotify(WxPayOrderNotifyV3Result.DecryptNotifyResult result); Boolean memberApplyRefund(RefundRequest request); + + String getOpenId(String code); } diff --git a/yudao-module-mall/yudao-module-shop-biz/src/main/java/cn/iocoder/yudao/module/shop/service/order/impl/StoreOrderServiceImpl.java b/yudao-module-mall/yudao-module-shop-biz/src/main/java/cn/iocoder/yudao/module/shop/service/order/impl/StoreOrderServiceImpl.java index 6af19f45a..ebe288fc5 100644 --- a/yudao-module-mall/yudao-module-shop-biz/src/main/java/cn/iocoder/yudao/module/shop/service/order/impl/StoreOrderServiceImpl.java +++ b/yudao-module-mall/yudao-module-shop-biz/src/main/java/cn/iocoder/yudao/module/shop/service/order/impl/StoreOrderServiceImpl.java @@ -46,7 +46,6 @@ import cn.iocoder.yudao.module.shop.utils.RedisUtil; import cn.iocoder.yudao.module.shop.vo.order.LogisticsResultVo; import cn.iocoder.yudao.module.shop.vo.order.StoreDateRangeSqlPram; import cn.iocoder.yudao.module.shop.vo.order.StoreOrderInfoOldVo; -import cn.iocoder.yudao.module.shop.vo.product.MyRecord; import com.alipay.api.AlipayApiException; import com.alipay.api.internal.util.AlipaySignature; import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; @@ -59,6 +58,10 @@ import com.github.pagehelper.Page; import com.github.pagehelper.PageHelper; import com.github.pagehelper.PageInfo; import lombok.extern.slf4j.Slf4j; +import me.chanjar.weixin.common.bean.oauth2.WxOAuth2AccessToken; +import me.chanjar.weixin.common.error.WxErrorException; +import me.chanjar.weixin.common.service.WxOAuth2Service; +import me.chanjar.weixin.mp.api.WxMpService; import org.apache.commons.lang3.StringUtils; import org.springframework.beans.BeanUtils; import org.springframework.beans.factory.annotation.Autowired; @@ -130,12 +133,9 @@ public class StoreOrderServiceImpl extends ServiceImpl 0; } + @Override + public String getOpenId(String code) { + WxOAuth2AccessToken accessToken = null; + try { + accessToken = wxMpService.getOAuth2Service().getAccessToken(code); + return accessToken.getOpenId(); + } catch (WxErrorException e) { + e.printStackTrace(); + } + return null; + } + private RechargeOrderDO initializeOrder(OrderContentRequest request, String code, MemberUserRespDTO user) { RechargeOrderDO orderDO = new RechargeOrderDO(); diff --git a/yudao-module-mall/yudao-module-shop-biz/src/main/java/cn/iocoder/yudao/module/shop/support/pay/AliPayStrategy.java b/yudao-module-mall/yudao-module-shop-biz/src/main/java/cn/iocoder/yudao/module/shop/support/pay/AliPayStrategy.java index 43143873d..e8992adf6 100644 --- a/yudao-module-mall/yudao-module-shop-biz/src/main/java/cn/iocoder/yudao/module/shop/support/pay/AliPayStrategy.java +++ b/yudao-module-mall/yudao-module-shop-biz/src/main/java/cn/iocoder/yudao/module/shop/support/pay/AliPayStrategy.java @@ -52,11 +52,11 @@ public class AliPayStrategy implements IPayStrategy { bizContent.put("total_amount", orderDO.getPayPrice()); //订单标题,不可使用特殊符号 bizContent.put("subject", "会员充值"); - bizContent.put("product_code", "FAST_INSTANT_TRADE_PAY"); + bizContent.put("product_code", "QUICK_WAP_WAY"); request.setBizContent(bizContent.toString()); AlipayTradeWapPayResponse response = null; try { - response = alipayClient.pageExecute(request); + response = alipayClient.pageExecute(request,"get"); orderResponse.setBody(response.getBody()); } catch (AlipayApiException e) { e.printStackTrace(); diff --git a/yudao-module-mall/yudao-module-shop-biz/src/main/java/cn/iocoder/yudao/module/shop/support/pay/WxPayStrategy.java b/yudao-module-mall/yudao-module-shop-biz/src/main/java/cn/iocoder/yudao/module/shop/support/pay/WxPayStrategy.java index 790a70c2a..1e95a8279 100644 --- a/yudao-module-mall/yudao-module-shop-biz/src/main/java/cn/iocoder/yudao/module/shop/support/pay/WxPayStrategy.java +++ b/yudao-module-mall/yudao-module-shop-biz/src/main/java/cn/iocoder/yudao/module/shop/support/pay/WxPayStrategy.java @@ -36,6 +36,7 @@ public class WxPayStrategy implements IPayStrategy{ private WxPayOneAutoConfiguration wxPayOneAutoConfiguration; @Autowired private WxPayProperties payProperties; + @Override public InitOrderResponse pay(RechargeOrderDO orderDO, HttpServletRequest servletRequest,String openid) { InitOrderResponse response = new InitOrderResponse(); diff --git a/yudao-server/src/main/resources/1/apiclient_cert.p12 b/yudao-server/src/main/resources/1/apiclient_cert.p12 index 68aaa88cd..c63d0f08f 100644 Binary files a/yudao-server/src/main/resources/1/apiclient_cert.p12 and b/yudao-server/src/main/resources/1/apiclient_cert.p12 differ diff --git a/yudao-server/src/main/resources/1/apiclient_cert.pem b/yudao-server/src/main/resources/1/apiclient_cert.pem index 6b9d544c0..de3c8109d 100644 --- a/yudao-server/src/main/resources/1/apiclient_cert.pem +++ b/yudao-server/src/main/resources/1/apiclient_cert.pem @@ -1,25 +1,25 @@ -----BEGIN CERTIFICATE----- -MIIEQDCCAyigAwIBAgIUWP21A/krbA4ljJlAu3JsK/YCLlYwDQYJKoZIhvcNAQEL +MIIEKzCCAxOgAwIBAgIUf3akrcUsoLRAxOVpj4pc0WM6D80wDQYJKoZIhvcNAQEL BQAwXjELMAkGA1UEBhMCQ04xEzARBgNVBAoTClRlbnBheS5jb20xHTAbBgNVBAsT FFRlbnBheS5jb20gQ0EgQ2VudGVyMRswGQYDVQQDExJUZW5wYXkuY29tIFJvb3Qg -Q0EwHhcNMjMwNDExMDgwODE3WhcNMjgwNDA5MDgwODE3WjCBmTETMBEGA1UEAwwK -MTY0MTk5MzQxNzEbMBkGA1UECgwS5b6u5L+h5ZWG5oi357O757ufMUUwQwYDVQQL -DDzliJvnm4jkupHnvZHnu5zvvIjph43luobvvInmnInpmZDlhazlj7jmuJ3ljJfn -rKzkuIDliIblhazlj7gxCzAJBgNVBAYMAkNOMREwDwYDVQQHDAhTaGVuWmhlbjCC -ASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBANWSWLmJaVbrJJq3uhbutKC6 -1ly6GbAxbnJgq8O9fP/MRLOljUHDSqUleVat1sVmSNwbsJuk0Hr0e1uowxGSJ3NY -iYMXMWj3S7iPxY+9ShkCJXWfvvPPjSTabk1dg3AUM8ukREQOqvlIFRyJfCUoirlj -2CGXfgMvEjtPYUouFWvB0EU9k+5LzynIyXckpVstx1rWZtlSRF/iviW5BaPf2sZk -0DDEbeMM13BsRSNOHS1NWU8DkV5zb1hNBq/T/OQ7glbs3kHqlD+TXEkcrN64Nr1r -ErohctE6Ep0d1iRUMFYjJXFvBq/1qyi62Vp1w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3CAZ16GgHLTuEOXBv7XeF9hoJuQsHM4WmtbNQVRAYzi6QvfN92tLucVL +6njxeXR+N7YyebIWE5IyLkTpyJSMTdSd1+dJqEMqA3hGJSDKS+SBxL3yxmS4JgCT +D0JoHhZv/bP7jI4zT/lR2GYuGLQ4JWe98GmWZiI95EwubXc9YDrlFr9CQ6fV5vmn +CL6wOxe9LEBx1OyYIBjjvw0Wj13vJxC1RPkCAwEAAaOBuTCBtjAJBgNVHRMEAjAA +MAsGA1UdDwQEAwID+DCBmwYDVR0fBIGTMIGQMIGNoIGKoIGHhoGEaHR0cDovL2V2 +Y2EuaXRydXMuY29tLmNuL3B1YmxpYy9pdHJ1c2NybD9DQT0xQkQ0MjIwRTUwREJD +MDRCMDZBRDM5NzU0OTg0NkMwMUMzRThFQkQyJnNnPUhBQ0M0NzFCNjU0MjJFMTJC +MjdBOUQzM0E4N0FEMUNERjU5MjZFMTQwMzcxMA0GCSqGSIb3DQEBCwUAA4IBAQAc +qtlunx6/t+aG2f2yr88kR5SQtwxY1cf3vWCowSCpE5B0nlIZxVHkyPve0w+HyuIf +Fz5fL55P/vf53callrZ7UJ8X5nCeQNFVeAkimYXocpyMkoZaxFe3ob+rr0fDvOcd +6MUBBKpJArLYpVmKpvQOyrGKSXMhpbLakGdsHF1++s+6DnUPKdObwVO3VpK8OkVw +cdv+AN1M6YC4UTlw/u+TGCEUJY2xgzdRnFTG9kpx9CvWcMIFP47PK72njY5T5uIj +IQclkz3jGSfr9oTbX8xa5MDm6vDs05zZ1IciyHDjs3VRmacYFlPMBeNVhp7JRoGi +Ynd6pwH68Gku/KXAFr2j -----END CERTIFICATE----- diff --git a/yudao-server/src/main/resources/1/apiclient_key.pem b/yudao-server/src/main/resources/1/apiclient_key.pem index 6c80814b2..fc7cfdd4e 100644 --- a/yudao-server/src/main/resources/1/apiclient_key.pem +++ b/yudao-server/src/main/resources/1/apiclient_key.pem @@ -1,28 +1,28 @@ -----BEGIN PRIVATE KEY----- -MIIEvgIBADAN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G2XaDVVlLsCKzUNCIhnmufD/Y2zaZg+MDY +Iah3B7taDbqapcqhLG99rlU= -----END PRIVATE KEY----- diff --git a/yudao-server/src/main/resources/application-local.yaml b/yudao-server/src/main/resources/application-local.yaml index 813f7d87f..53154493e 100644 --- a/yudao-server/src/main/resources/application-local.yaml +++ b/yudao-server/src/main/resources/application-local.yaml @@ -162,8 +162,8 @@ debug: false --- #################### 微信公众号、小程序相关配置 #################### wx: mp: # 公众号配置(必填),参见 https://github.com/Wechat-Group/WxJava/blob/develop/spring-boot-starters/wx-java-mp-spring-boot-starter/README.md 文档 - app-id: wxb1826c88da21d81e - secret: 1960c9cc785b094040a4fd4b2955c0cb + app-id: wx7e503d9cded34c07 + secret: 31883ca14e2cbac8610d30f8f945ee47 # 存储配置,解决 AccessToken 的跨节点的共享 config-storage: type: RedisTemplate # 采用 RedisTemplate 操作 Redis,会自动从 Spring 中获取 @@ -179,16 +179,16 @@ wx: pay: one: enabled: true - app-id: wxb1826c88da21d81e - mch-id: 1641993417 + app-id: wx7e503d9cded34c07 + mch-id: 1641073271 mch-key: qdn2I7Cmx4JeiKOt2CDjiu6UHgLTsOsM - apiv3-key: cyywl666666cyywl888888cyywl66666 + apiv3-key: cyywl123456cyywl654321cyywl12345 private-cert-path: classpath:/1/apiclient_cert.pem private-key-path: classpath:/1/apiclient_key.pem key-path: classpath:/1/apiclient_cert.p12 cert-serial-no: 58FDB503F92B6C0E258C9940BB726C2BF6022E56 - notify-url: http://yuxy.perrymake.com/app-api/pay/wxpay/pay_notify - refund-notify-url: http://yuxy.perrymake.com/app-api/pay/wxpay/refund_notify + notify-url: http://yuxy.perrymake.com/admin-api/notify/wxpay/pay_notify + refund-notify-url: http://yuxy.perrymake.com/admin-api/notify/wxpay/refund_notify two: enabled: true app-id: wxb1826c88da21d81e @@ -205,9 +205,9 @@ wx: ali: pay: one: - appId: 2021003194654312 - merchantPrivateKey: MIIEwAIBADANBgkqhkiG9w0BAQEFAASCBKowggSmAgEAAoIBA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4yirjS8hAkuwknO06QKBgHH4tnbX5jovuBPDjHnaSm8rBqaUyZxGOAimCehTVgvgULWshbOkoVQy17KmQWIMrGBG0sI6acWRgN0NDRgzqQ3hcyxby8zd7GRLYMBwsqQm3YYbwkobf1tHhbOp7Fc1GoE8dSixCW3cb6SVoGtfkBBWWdEfm8st1tCj6EkjBAwhAoGAShd1PY/QOEJ6Cj9IDXvD25DAh0dKs54PRxENetbIxPgYpH7db6n/smmbwM69U4TXZyFfqme1Bc0JwM2J7D6gs4OV88AhXJvfj091eJQhYC5e80Eo8dySserwLp8/ka6FV/EFUplg/DD4JR/jbVzO2fbOPCLm6I+sZqG3K7mg6IM= + alipayPublicKey: MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAgIcnSCg9uOLsR2ggBPDeCgNJHytlJIV2slMGq73NPbPyRwu1pK7cIJnh8fichQP0EANVh0ERCfI8kvR64GrJpgPgWhNLxsG7v3NEeAnXuXS3iE2W+MOF9UZR/sY7Rd+KSix96FYtvavY1E0YouNXggXs7S/13GyQ7MQJwjZ7sXGpNIJOHJfI/WqDAT/6KSHObEw0qmBUkkw0jDxofdDOiqMBbQh8lWcRLM3CEV/XESLn/SrXxrwc5YyTIzRrISDLmh1Qhacu9hNLOdB5jMQuCqHYaehxHS1dRlAWcvOz2Iik6qfVlZ9Ap3c3H5pnVFF1VL6ljys0Td2EsRMSdGeShQIDAQAB gatewayUrl: https://openapi.alipay.com/gateway.do notify-url: http://yuxy.perrymake.com/app-api/pay/ali/pay_notify # 芋道配置项,设置当前项目所有自定义的配置 diff --git a/yudao-ui-app/api/member.js b/yudao-ui-app/api/member.js index 182262073..8e1f99336 100644 --- a/yudao-ui-app/api/member.js +++ b/yudao-ui-app/api/member.js @@ -11,8 +11,8 @@ export function memberGradeInfo(){ /** * 获取当前登录账号的充值记录 */ -export function memberHeadInfo(){ - return request.get('api/order/member/memberHeadInfo', {},{noAuth:true}) +export function memberOrderInfo(){ + return request.get('api/order/member/memberOrderInfo', {},{noAuth:true}) } /** diff --git a/yudao-ui-app/pages.json b/yudao-ui-app/pages.json index 911bdef5f..25c9a715e 100644 --- a/yudao-ui-app/pages.json +++ b/yudao-ui-app/pages.json @@ -573,11 +573,17 @@ "text": "分类" }, { - "pagePath": "pages/member_application/index", + "pagePath": "pages/member_record/index", "iconPath": "static/images/2-001.png", "selectedIconPath": "static/images/2-002.png", "text": "会员申请" }, + // { + // "pagePath": "pages/member_application/index", + // "iconPath": "static/images/2-001.png", + // "selectedIconPath": "static/images/2-002.png", + // "text": "会员申请" + // }, { "pagePath": "pages/order_addcart/order_addcart", "iconPath": "static/images/3-001.png", diff --git a/yudao-ui-app/pages/member_application/index.vue b/yudao-ui-app/pages/member_application/index.vue index faa53b235..e26a09936 100644 --- a/yudao-ui-app/pages/member_application/index.vue +++ b/yudao-ui-app/pages/member_application/index.vue @@ -1,23 +1,16 @@ @@ -102,20 +101,30 @@ diff --git a/yudao-ui-app/pages/member_record/index.vue b/yudao-ui-app/pages/member_record/index.vue index 713dd712f..c239bddd2 100644 --- a/yudao-ui-app/pages/member_record/index.vue +++ b/yudao-ui-app/pages/member_record/index.vue @@ -1,30 +1,54 @@