Browse Source

fix bug

master
lin 2 years ago
parent
commit
6eda4d3a9a
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      gptCApi/src/main/java/com/iformall/controller/WxPayController.java

+ 3
- 3
gptCApi/src/main/java/com/iformall/controller/WxPayController.java View File

@@ -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端小程序");
} }


Loading…
Cancel
Save