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