This commit is contained in:
hucs
2024-06-24 16:09:55 +08:00
parent 66fdde9735
commit f689fc6bc9
20 changed files with 84 additions and 93 deletions

View File

@@ -11,10 +11,8 @@ import com.starry.admin.modules.custom.module.entity.PlayCustomUserInfoEntity;
import com.starry.admin.modules.custom.service.IPlayCustomUserInfoService;
import com.starry.admin.modules.order.module.entity.PlayOrderInfoEntity;
import com.starry.admin.modules.order.service.IPlayOrderInfoService;
import com.starry.admin.modules.order.service.impl.PlayOrderInfoServiceImpl;
import com.starry.admin.modules.platform.entity.SysTenantEntity;
import com.starry.admin.modules.platform.service.impl.SysTenantServiceImpl;
import com.starry.admin.modules.weichat.service.WxCustomMpService;
import com.starry.admin.utils.SecurityUtils;
import com.starry.common.result.R;
import com.starry.common.utils.StringUtils;
@@ -45,12 +43,14 @@ public class WxPlayController {
private IPlayCustomUserInfoService customUserInfoService;
@Resource
private IPlayOrderInfoService orderInfoService;
@Resource
private WxCustomMpService mpService;
@Resource
PlayOrderInfoServiceImpl playOrderInfoService;
@GetMapping("/test")
public String test() {
SysTenantEntity tenant = tenantService.getById("7f7ecd75fd29464db2867982f88e8ef0");
tenantService.initRole(tenant);
return WxPayNotifyResponse.success("成功");
}
/**
* 微信支付-微信回调地址https://pay.weixin.qq.com/wiki/doc/api/wxa/wxa_api.php?chapter=9_7&index=8
@@ -130,6 +130,7 @@ public class WxPlayController {
BigDecimal paymentAmount = customUserInfoService.getCustomPaymentAmount(new BigDecimal(money), ThreadLocalRequestDetail.getCustomUserInfo().getId());
return R.ok(paymentAmount);
}
@CustomUserLogin
@GetMapping("/custom/createOrder")
public R createOrder(@RequestParam("money") String money) {