Commit 26c4a61e by ping.wu

订单宝暂无appid,返回支付关联的appid用于储值校验记录支付退款用

parent 4fbdf910
...@@ -129,7 +129,7 @@ public class ExposureOrderController { ...@@ -129,7 +129,7 @@ public class ExposureOrderController {
@ApiAnnotation(logMessage = "查询支付虚拟门店配置") @ApiAnnotation(logMessage = "查询支付虚拟门店配置")
@PostMapping("/getVirtualStore") @PostMapping("/getVirtualStore")
public BaseResponse<String> getVirtualStore(@Validated @LogParams @RequestBody GetVirtualStoreRequest req) { public BaseResponse<String> getVirtualStore(@Validated @LogParams @RequestBody GetVirtualStoreRequest req) {
return ResponseUtil.success(exposureOrderService.getVirtualStore(req.getPartnerId(),req.getAppId(), req.getType())); return ResponseUtil.success(exposureOrderService.getVirtualStore(req.getAppId(), req.getType()));
} }
@ApiAnnotation(logMessage = "查询订单宝购买储值卡配置的支付虚拟门店信息") @ApiAnnotation(logMessage = "查询订单宝购买储值卡配置的支付虚拟门店信息")
......
...@@ -96,12 +96,7 @@ public class ExposureOrderService { ...@@ -96,12 +96,7 @@ public class ExposureOrderService {
* @param type 虚拟门店类型 {@link AggregationTypeEnum} * @param type 虚拟门店类型 {@link AggregationTypeEnum}
* @return 虚拟门店号 * @return 虚拟门店号
*/ */
public String getVirtualStore(String partnerId,String appId, String type) { public String getVirtualStore(String appId, String type) {
//订单宝购买储值卡支付虚拟门店,订单宝暂无appid
if(type.equals("12") && appId.equals("12")){
AssortmentOpenPlatformIappWxappStore virtualStore = payService.getVirtualStore(partnerId, type);
return virtualStore == null ? "" : virtualStore.getStoreId();
}
AssortmentOpenPlatformIappWxappStore wxAppStore = payService.getIappWxappStoreInfo(appId, type); AssortmentOpenPlatformIappWxappStore wxAppStore = payService.getIappWxappStoreInfo(appId, type);
return wxAppStore == null ? "" : wxAppStore.getStoreId(); return wxAppStore == null ? "" : wxAppStore.getStoreId();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment