|
@@ -44,7 +44,14 @@ public class PaymentScrmController extends AppBaseController {
|
|
@PostMapping("/payment")
|
|
@PostMapping("/payment")
|
|
@RepeatSubmit
|
|
@RepeatSubmit
|
|
public R payment(@Validated @RequestBody FsStorePaymentPayParam payment, HttpServletRequest request){
|
|
public R payment(@Validated @RequestBody FsStorePaymentPayParam payment, HttpServletRequest request){
|
|
- final WxMaService wxService = WxMaConfiguration.getMaService(properties.getConfigs().get(0).getAppid());
|
|
|
|
|
|
+ String appId = null;
|
|
|
|
+ if (payment.getAppId()!=null && !"".equals(payment.getAppId())){
|
|
|
|
+ appId= payment.getAppId();
|
|
|
|
+ }else {
|
|
|
|
+ appId=properties.getConfigs().get(0).getAppid();
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ final WxMaService wxService = WxMaConfiguration.getMaService(appId);
|
|
try {
|
|
try {
|
|
String ip = IpUtil.getRequestIp();
|
|
String ip = IpUtil.getRequestIp();
|
|
WxMaJscode2SessionResult session = wxService.getUserService().getSessionInfo(payment.getCode());
|
|
WxMaJscode2SessionResult session = wxService.getUserService().getSessionInfo(payment.getCode());
|