|
|
@@ -52,7 +52,6 @@ public class WxPayController extends BaseController { |
|
|
|
@Autowired |
|
|
|
SysConfigService sysConfigService; |
|
|
|
|
|
|
|
|
|
|
|
@Autowired |
|
|
|
@Qualifier("objectCommonRedisTemplate") |
|
|
|
RedisTemplate<String, Object> redisTemplate; |
|
|
@@ -63,13 +62,14 @@ public class WxPayController extends BaseController { |
|
|
|
* @param paramMap |
|
|
|
* @return |
|
|
|
*/ |
|
|
|
@ApiOperation(value = "创建支付订单", notes = "{}") |
|
|
|
@ApiOperation(value = "创建支付订单", notes = "{\"appId\":\"string\",\"productId\":\"string\"}") |
|
|
|
@PostMapping("/createPayOrder") |
|
|
|
public ResultData createPayOrder(@RequestBody Map<String, String> paramMap) { |
|
|
|
WxCUser wxCUser = this.getCUser(); |
|
|
|
String appId = paramMap.get("appId"); |
|
|
|
//String carNumber = paramMap.get("carNumber"); |
|
|
|
try { |
|
|
|
WxAppinfo cAppInfo = wxAppinfoService.getCAppInfoFromRedis(wxCUser.getTenantId()); |
|
|
|
WxAppinfo cAppInfo = wxAppinfoService.getCAppInfoFromRedis(appId); |
|
|
|
if(cAppInfo == null){ |
|
|
|
throw new MallinkException(ErrorCode.APPINFO_NOFUND.getCode(),"未查询到C端小程序"); |
|
|
|
} |
|
|
|