Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

pull request #1

Merged
merged 5 commits into from
Jul 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ public WxPayService wxPayService() {
payConfig.setSubAppId(StringUtils.trimToNull(this.properties.getSubAppId()));
payConfig.setSubMchId(StringUtils.trimToNull(this.properties.getSubMchId()));
payConfig.setKeyPath(StringUtils.trimToNull(this.properties.getKeyPath()));
payConfig.setUseSandboxEnv(this.properties.isUseSandboxEnv());
//以下是apiv3以及支付分相关
payConfig.setServiceId(StringUtils.trimToNull(this.properties.getServiceId()));
payConfig.setPayScoreNotifyUrl(StringUtils.trimToNull(this.properties.getPayScoreNotifyUrl()));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,5 +73,11 @@ public class WxPayProperties {
* apiv3 商户apiclient_cert.pem
*/
private String privateCertPath;

/**
* 微信支付是否使用仿真测试环境.
* 默认不使用
*/
private boolean useSandboxEnv;

}
Original file line number Diff line number Diff line change
Expand Up @@ -431,6 +431,12 @@ public static class EventType {
*/
public static final String WEAPP_AUDIT_FAIL = "weapp_audit_fail";


/**
* 小程序审核事件:审核延后
*/
public static final String WEAPP_AUDIT_DELAY = "weapp_audit_delay";

/**
* 小程序自定义交易组件支付通知
*/
Expand All @@ -454,7 +460,36 @@ public static class EventType {
* 订阅通知事件:发送订阅通知回调
*/
public static final String SUBSCRIBE_MSG_SENT_EVENT = "subscribe_msg_sent_event";
}

/**
* 名称审核事件
*/
public static final String WXA_NICKNAME_AUDIT = "wxa_nickname_audit" ;
/**
*小程序违规记录事件
*/
public static final String WXA_ILLEGAL_RECORD= "wxa_illegal_record";
/**
*小程序申诉记录推送
*/
public static final String WXA_APPEAL_RECORD= "wxa_appeal_record";
/**
* 隐私权限审核结果推送
*/
public static final String WXA_PRIVACY_APPLY= "wxa_privacy_apply";
/**
* 类目审核结果事件推送
*/
public static final String WXA_CATEGORY_AUDIT= "wxa_category_audit";
/**
* 小程序微信认证支付成功事件
*/
public static final String WX_VERIFY_PAY_SUCC= "wx_verify_pay_succ";
/**
* 小程序微信认证派单事件
*/
public static final String WX_VERIFY_DISPATCH= "wx_verify_dispatch";
}

/**
* 上传多媒体(临时素材)文件的类型.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

/**
* <pre>
* 传运单接口 follow_waybil
* 传运单接口 follow_waybill
*
* 商户使用此接口向微信提供某交易单号对应的运单号。微信后台会跟踪运单的状态变化,在关键物流节点给下单用户推送消息通知。
* </pre>
Expand Down Expand Up @@ -53,7 +53,7 @@ public class FollowWaybillRequest implements Serializable {
/**
* 收件人手机号
* <pre>
* 是否必填:
* 是否必填:
* 描述:部分运力需要用户手机号作为查单依据
* </pre>
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,10 @@ public static class WaybillInfo implements Serializable {
private Integer status;

/**
* 查询id.
* 运单号.
*/
@SerializedName("waybill_token")
private String waybillToken;
@SerializedName("waybill_id")
private String waybillId;
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,10 @@ public static class WaybillInfo implements Serializable {
private Integer status;

/**
* 查询id.
* 运单号.
*/
@SerializedName("waybill_token")
private String waybillToken;
@SerializedName("waybill_id")
private String waybillId;
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,4 +147,8 @@ public void expireAccessToken() {
redisOps.expire(this.accessTokenKey, 0, TimeUnit.SECONDS);
}

@Override
public long getExpiresTime() {
return redisOps.getExpire(this.accessTokenKey);
}
}