master
wangning 7 years ago
parent bb9c239184
commit cf05d18db6

@ -424,6 +424,7 @@ public class RedpackServiceImpl implements RedpackService {
wechatRedpack.setSendName(sendName).setOpenId(rpOpenId).setActName(actName)
.setRemark("店长激励计划").setAmount(luckyMoeny).setWishing(wishing).setNotifyUrl(notifyUrl);
String redPacketId = mpWechatApiProvider.getApi("Redpack").sendRedpack(wechatRedpack).getString("redpack_id");
logger.debug("kira-->>>>"+redPacketId);
prizeDetail.put("red_packet_id", redPacketId);
prizeDetail.put("status", 1);
actPartnerLMLogMapper.update(prizeDetail);
@ -462,6 +463,7 @@ public class RedpackServiceImpl implements RedpackService {
List<JSONObject> redPacketOrders = actPartnerLMLogMapper.sendList(params);
for (JSONObject redPack : redPacketOrders) {
JSONObject supportRedPack = mpAlipayRedpackApi.redpackStatus(redPack.getString("red_packet_id"));
logger.debug("kiratest----------"+supportRedPack.toJSONString());
if (supportRedPack != null && !supportRedPack.isEmpty()) {
switch (supportRedPack.getString("status")) {
case "0":

Loading…
Cancel
Save