Visitar URL original
Feature implementation from commits a051587..fefe737 by codeOwlAI · Pull Request #1 · codeOwlAI/WxJava · GitHub
Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
15 commits
Select commit Hold shift + click to select a range
c91a5a8
:art: 【微信支付】修复连接池关闭异常问题
SynchPj May 13, 2025
a7b007f
:memo: 修正版本说明文档
binarywang May 13, 2025
063fbb7
:art: 升级部分依赖版本,优化代码,部分代码增加泛型参数
altusea May 13, 2025
77b9062
:arrow_up: Bump org.eclipse.jetty:jetty-server
binarywang May 13, 2025
9a6db34
:art: #3577 【微信支付】微信分账回退请求接口新增字段:微信订单号transaction_id
altusea May 13, 2025
2c4b5ea
:art: #3525 【企业微信】第三方应用配置类提供setProviderSecret 方法
altusea May 13, 2025
5c2a36c
:art: add serialVersionUID for some class
binarywang May 13, 2025
04c162f
:art: #3574 【微信支付】修复商家券available_day_time字段定义错误
altusea May 13, 2025
2762a98
:art: #3569 【视频号】微信小店-订单详情查询接口增加参数
altusea May 13, 2025
1a74e3e
:art: #3562 【企业微信】发送应用消息接口返回增加unlicenseduser字段
altusea May 13, 2025
d776792
:art: #3575 【视频号】微信小店api官方将要废除finder_id,以promoter_id代替
altusea May 13, 2025
f5dd32d
:memo: 优化badge展示
binarywang May 14, 2025
47051bd
:art: #3586 【微信支付】修复资源上传接口使用POST请求Content-Type不正确导致签名错误的问题
SynchPj May 14, 2025
d0b7a52
:art: #3587【微信支付】支持完全公钥模式,新增fullPublicKeyModel字段来控制,默认关闭,关闭时走老逻辑,开启时,…
SynchPj May 14, 2025
fefe737
:art: #3588 【小程序】短剧媒资列表接口增加新字段media_name_fuzzy
altusea May 15, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
🎨 binarywang#3575 【视频号】微信小店api官方将要废除finder_id,以promoter_id代替
  • Loading branch information
altusea authored May 13, 2025
commit d776792baeaf169239bb182ac2ddf92e6d3cc994
Original file line number Diff line number Diff line change
Expand Up @@ -15,43 +15,84 @@ public interface WxLeaguePromoterService {
/**
* 新增达人
*
* @param finderId 视频号finder_id
* @param finderId 视频号finder_id,待废除
* @return 结果
* @deprecated 使用 {@link #addPromoterV2(String)}
*/
@Deprecated
WxChannelBaseResponse addPromoter(String finderId) throws WxErrorException;

/**
* 编辑达人
*
* @param finderId 视频号finder_id
* @param finderId 视频号finder_id,待废除
* @param type 操作 1取消邀请 2结束合作
* @return 结果
* @deprecated 使用 {@link #updatePromoterV2(String, int)}
*/
@Deprecated
WxChannelBaseResponse updatePromoter(String finderId, int type) throws WxErrorException;

/**
* 删除达人
*
* @param finderId 视频号finder_id
* @param finderId 视频号finder_id,待废除
* @return 结果
* @deprecated 使用 {@link #deletePromoterV2(String)}
*/
@Deprecated
WxChannelBaseResponse deletePromoter(String finderId) throws WxErrorException;

/**
* 获取达人详情信息
*
* @param finderId 视频号finder_id
* @param finderId 视频号finder_id,待废除
* @return 结果
* @deprecated 使用 {@link #getPromoterInfoV2(String)}
*/
@Deprecated
PromoterInfoResponse getPromoterInfo(String finderId) throws WxErrorException;

/**
* 获取达人列表
*
* @param pageIndex 页面下标,下标从1开始,默认为1
* @param pageSize 单页达人数(不超过200)
* @param status 拉取该状态下的达人列表
* @return 结果
*/
PromoterListResponse listPromoter(Integer pageIndex, Integer pageSize, Integer status) throws WxErrorException;
/**
* 新增达人
*
* @param promoterId 达人带货id
* @return 结果
*/
WxChannelBaseResponse addPromoterV2(String promoterId) throws WxErrorException;

/**
* 编辑达人
*
* @param promoterId 达人带货id
* @param type 操作 1取消邀请 2结束合作
* @return 结果
*/
WxChannelBaseResponse updatePromoterV2(String promoterId, int type) throws WxErrorException;

/**
* 删除达人
*
* @param promoterId 达人带货id
* @return 结果
*/
WxChannelBaseResponse deletePromoterV2(String promoterId) throws WxErrorException;

/**
* 获取达人详情信息
*
* @param promoterId 达人带货id
* @return 结果
*/
PromoterInfoResponse getPromoterInfoV2(String promoterId) throws WxErrorException;

/**
* 获取达人列表
*
* @param pageIndex 页面下标,下标从1开始,默认为1
* @param pageSize 单页达人数(不超过200)
* @param status 拉取该状态下的达人列表
* @return 结果
*/
PromoterListResponse listPromoter(Integer pageIndex, Integer pageSize, Integer status) throws WxErrorException;
}
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,34 @@ public PromoterInfoResponse getPromoterInfo(String finderId) throws WxErrorExcep
return ResponseUtils.decode(resJson, PromoterInfoResponse.class);
}

@Override
public WxChannelBaseResponse addPromoterV2(String promoterId) throws WxErrorException {
String reqJson = "{\"promoter_id\":\"" + promoterId + "\"}";
String resJson = shopService.post(ADD_PROMOTER_URL, reqJson);
return ResponseUtils.decode(resJson, WxChannelBaseResponse.class);
}

@Override
public WxChannelBaseResponse updatePromoterV2(String promoterId, int type) throws WxErrorException {
String reqJson = "{\"promoter_id\":\"" + promoterId + "\",\"type\":" + type + "}";
String resJson = shopService.post(EDIT_PROMOTER_URL, reqJson);
return ResponseUtils.decode(resJson, WxChannelBaseResponse.class);
}

@Override
public WxChannelBaseResponse deletePromoterV2(String promoterId) throws WxErrorException {
String reqJson = "{\"promoter_id\":\"" + promoterId + "\"}";
String resJson = shopService.post(DELETE_PROMOTER_URL, reqJson);
return ResponseUtils.decode(resJson, WxChannelBaseResponse.class);
}

@Override
public PromoterInfoResponse getPromoterInfoV2(String promoterId) throws WxErrorException {
String reqJson = "{\"promoter_id\":\"" + promoterId + "\"}";
String resJson = shopService.post(GET_PROMOTER_URL, reqJson);
return ResponseUtils.decode(resJson, PromoterInfoResponse.class);
}

@Override
public PromoterListResponse listPromoter(Integer pageIndex, Integer pageSize, Integer status)
throws WxErrorException {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,19 @@
public class PromoterListResponse extends WxChannelBaseResponse {

private static final long serialVersionUID = 1411870432999885996L;
/** 达人finder_id列表 */
/** 达人finder_id列表,待废除后续以promoter_ids为准 */
@JsonProperty("finder_ids")
private List<String> finderIds;

/** 达人总数 */
@JsonProperty("total_num")
private Integer totalNum;

/** 后面是否还有(true: 还有内容; false: 已结束)*/
@JsonProperty("continue_flag")
private Boolean continueFlag;

/** 达人带货id列表 */
@JsonProperty("promoter_ids")
private List<String> promoterIds;
}