提交代码

yy_dev
胡锐 1 year ago
parent 78c5e3c674
commit 9f1a566193
  1. 7
      open-api/src/main/java/com/api/controller/v1/MerController.java
  2. 9
      service/src/main/java/com/hfkj/channel/lakala/LaKaLaConfigService.java

@ -35,11 +35,12 @@ public class MerController {
@ApiOperation(value = "wechatParamConf") @ApiOperation(value = "wechatParamConf")
public ResponseData wechatParamConf(@RequestParam(value = "merCupNo" , required = true) String merCupNo, public ResponseData wechatParamConf(@RequestParam(value = "merCupNo" , required = true) String merCupNo,
@RequestParam(value = "subMchId" , required = true) String subMchId, @RequestParam(value = "subMchId" , required = true) String subMchId,
@RequestParam(value = "subAppid" , required = true) String subAppid, @RequestParam(value = "subAppid" , required = false) String subAppid,
@RequestParam(value = "jsapiPath" , required = true) String jsapiPath) { @RequestParam(value = "jsapiPath" , required = false) String jsapiPath,
@RequestParam(value = "confType" , required = true) String confType) {
try { try {
// return ResponseMsgUtil.success(laKaLaConfigService.wechatParamConf("822690053111ERC", "569999133","wxf30043187dc90829", "http://api2.ctpark.cn/")); // return ResponseMsgUtil.success(laKaLaConfigService.wechatParamConf("822690053111ERC", "569999133","wxf30043187dc90829", "http://api2.ctpark.cn/"));
return ResponseMsgUtil.success(laKaLaConfigService.wechatParamConf(merCupNo, subMchId,subAppid, jsapiPath)); return ResponseMsgUtil.success(laKaLaConfigService.wechatParamConf(merCupNo, subMchId,subAppid, jsapiPath,confType));
} catch (Exception e) { } catch (Exception e) {
log.error(e.getMessage(), e); log.error(e.getMessage(), e);

@ -36,9 +36,10 @@ public class LaKaLaConfigService {
* @param subMchId 微信子商户号 * @param subMchId 微信子商户号
* @param subAppid 关联APPID 绑定特约商户或渠道公众号小程序APP支付等对应的APPID * @param subAppid 关联APPID 绑定特约商户或渠道公众号小程序APP支付等对应的APPID
* @param jsapiPath 授权目录 * @param jsapiPath 授权目录
* @param confType 配置类型 配置类型 类型=SUB_APPID时subAppid必传, 类型=SUBSCRIBE_APPID时subscribeAppid必传 ,类型=UNION时subAppid和subscribeAppid必传 类型=JSAPI_PATH时jsapiPath必传
* @return * @return
*/ */
public JSONObject wechatParamConf(String merCupNo,String subMchId,String subAppid,String jsapiPath) { public JSONObject wechatParamConf(String merCupNo,String subMchId,String subAppid,String jsapiPath,String confType) {
// 请求参数 // 请求参数
Map<String, Object> param = new HashMap<>(); Map<String, Object> param = new HashMap<>();
param.put("timestamp", new Date().getTime()); param.put("timestamp", new Date().getTime());
@ -48,12 +49,12 @@ public class LaKaLaConfigService {
Map<String, Object> map = new HashMap<>(); Map<String, Object> map = new HashMap<>();
map.put("merCupNo", merCupNo); map.put("merCupNo", merCupNo);
map.put("channlId", "24006513"); // 微信渠道号 (仅支持拉卡拉渠道配置) // map.put("channlId", "24006513"); // 微信渠道号 (仅支持拉卡拉渠道配置)
// map.put("channlId", "167048649"); // 微信渠道号 (仅支持拉卡拉渠道配置) map.put("channlId", "167048649"); // 微信渠道号 (仅支持拉卡拉渠道配置)
map.put("subMchId", subMchId); map.put("subMchId", subMchId);
map.put("subAppid", subAppid); map.put("subAppid", subAppid);
map.put("jsapiPath", jsapiPath); map.put("jsapiPath", jsapiPath);
map.put("confType", "SUB_APPID"); map.put("confType", confType);
param.put("reqData", map); param.put("reqData", map);
// 生成签名 // 生成签名

Loading…
Cancel
Save