Browse Source

fix bug

master
lin 1 year 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
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端小程序");
}


Loading…
Cancel
Save