无关风月
昨天 b1fb83530b7105e4aa73e4101727dea945eb01c2
cloud-server-course/src/main/java/com/dsh/course/service/impl/TCoursePackageServiceImpl.java
@@ -949,7 +949,7 @@
        Store store = storeClient.queryStoreById(storeId);
        if (store.getOperatorId()==null || store.getOperatorId()==0){
            ResultUtil weixinpay = payMoneyUtil.weixinpay("报名运动营", "", code, coursePackagePaymentConfig.getId().toString(),
            ResultUtil weixinpay = payMoneyUtil.weixinpay("报名运动营", "", code, paymentPrice.toString(),
                    "/base/course/weChatPaymentCourseCallback", "APP", "");
            return weixinpay;
        }else{
@@ -1280,9 +1280,13 @@
        coursePackageOrder1.setOrderNumber(trade_no);
        coursePackageOrder1.setAppUserId(null);
        coursePackageOrderService.updateById(coursePackageOrder1);
        TCoursePackage coursePackage = coursePackageService.getById(coursePackageOrder1.getCoursePackageId());
        // 将用户优惠券修改为已使用
        Long userCouponId = coursePackageOrder1.getUserCouponId();
        CoursePackagePaymentConfig coursePackagePaymentConfig = coursePackagePaymentConfigService.getById(attach);
        addCoursePackageOrderStudent(coursePackageOrder1.getId(), coursePackagePaymentConfig);
        userCouponClient.updateUserCouponStatus(userCouponId,coursePackage.getStoreId(),coursePackage.getSiteId());
//        CoursePackagePaymentConfig coursePackagePaymentConfig = coursePackagePaymentConfigService.getById(attach);
//        addCoursePackageOrderStudent(coursePackageOrder1.getId(), coursePackagePaymentConfig);
        TCoursePackage byId = coursePackageService.getById(coursePackageOrder1.getCoursePackageId());
        Store store = storeClient.queryStoreById(byId.getStoreId());
//        moneyOut(trade_no,trade_no,code);