浏览代码

fix bug

master
lin 2 年前
父节点
当前提交
6eda4d3a9a
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. +3
    -3
      gptCApi/src/main/java/com/iformall/controller/WxPayController.java

+ 3
- 3
gptCApi/src/main/java/com/iformall/controller/WxPayController.java 查看文件

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


正在加载...
取消
保存