| | |
| | |
|
| | | import org.springframework.stereotype.Service;
|
| | |
|
| | | import com.yeshi.fanli.controller.client.UserInfoController;
|
| | | import com.yeshi.fanli.controller.client.v1.UserInfoController;
|
| | | import com.yeshi.fanli.dao.mybatis.AccountMessageMapper;
|
| | | import com.yeshi.fanli.entity.bus.user.AccountMessage;
|
| | | import com.yeshi.fanli.entity.bus.user.BindingAccount;
|
| | |
| | | return;
|
| | | try {
|
| | | pushService.pushZNX(uid, Constant.znxConfig.getNewerHongbaoTitle(),
|
| | | Constant.znxConfig.getNewerHongbaoMsg().replace("[金额]", money.toString()));
|
| | | Constant.znxConfig.getNewerHongbaoMsg().replace("[金额]", money.toString()), null, null);
|
| | | } catch (PushException e) {
|
| | | e.printStackTrace();
|
| | | }
|
| | | }
|
| | |
|
| | | @Override
|
| | | public void orderFanliRecieved(Long uid, String orderId, BigDecimal money) {
|
| | | public void orderFanliRecieved(Long uid, String orderId, int goodsCount, BigDecimal balance, BigDecimal money) {
|
| | | if (Constant.IS_TEST)
|
| | | return;
|
| | | try {
|
| | | pushService.pushZNX(uid, Constant.znxConfig.getOrderFanliRecieveTitle(), Constant.znxConfig
|
| | | .getOrderFanliRecieveMsg().replace("[订单号]", orderId).replace("[金额]", money.toString()));
|
| | | .getOrderFanliRecieveMsg().replace("[订单号]", orderId).replace("[金额]", money.toString()), null, null);
|
| | | } catch (PushException e) {
|
| | | e.printStackTrace();
|
| | | }
|
| | |
| | | return;
|
| | | try {
|
| | | pushService.pushZNX(uid, Constant.znxConfig.getShareMoneyRecieveTitle(),
|
| | | Constant.znxConfig.getShareMoneyRecieveMsg().replace("[金额]", money.toString()));
|
| | | } catch (PushException e) {
|
| | | e.printStackTrace();
|
| | | }
|
| | | }
|
| | |
|
| | | @Override
|
| | | public void orderFanliStatisticed(Long uid, String orderId) {
|
| | | if (Constant.IS_TEST)
|
| | | return;
|
| | | try {
|
| | | pushService.pushZNX(uid, Constant.znxConfig.getFanliOrderStatisticedTitle(),
|
| | | Constant.znxConfig.getFanliOrderStatisticedMsg().replace("[订单号]", orderId));
|
| | | Constant.znxConfig.getShareMoneyRecieveMsg().replace("[金额]", money.toString()), null, null);
|
| | | } catch (PushException e) {
|
| | | e.printStackTrace();
|
| | | }
|
| | |
| | | orderId = orderId.substring(0, orderId.length() - 6) + "******";
|
| | | try {
|
| | | pushService.pushZNX(uid, Constant.znxConfig.getTichengOrderStatisticedTitle(), Constant.znxConfig
|
| | | .getTichengOrderStatisticedMsg().replace("[订单号]", orderId).replace("[金额]", money.toString()));
|
| | | .getTichengOrderStatisticedMsg().replace("[订单号]", orderId).replace("[金额]", money.toString()), null, null);
|
| | | } catch (PushException e) {
|
| | | e.printStackTrace();
|
| | | }
|
| | |
| | | return;
|
| | | try {
|
| | | pushService.pushZNX(uid, Constant.znxConfig.getExtractApplayTitle(),
|
| | | Constant.znxConfig.getExtractApplayMsg());
|
| | | Constant.znxConfig.getExtractApplayMsg(), null, null);
|
| | | } catch (PushException e) {
|
| | | e.printStackTrace();
|
| | | }
|
| | |
| | | return;
|
| | | try {
|
| | | pushService.pushZNX(uid, Constant.znxConfig.getExtractTransferFailTitle(),
|
| | | Constant.znxConfig.getExtractTransferFailMsg().replace("[时间]", time));
|
| | | Constant.znxConfig.getExtractTransferFailMsg().replace("[时间]", time), null, null);
|
| | | } catch (PushException e) {
|
| | | e.printStackTrace();
|
| | | }
|
| | |
| | |
|
| | | try {
|
| | | pushService.pushZNX(uid, Constant.znxConfig.getExtractWrongTitle(),
|
| | | Constant.znxConfig.getExtractWrongMsg().replace("[时间]", time));
|
| | | Constant.znxConfig.getExtractWrongMsg().replace("[时间]", time), null, null);
|
| | | } catch (PushException e) {
|
| | | e.printStackTrace();
|
| | | }
|
| | |
| | |
|
| | | try {
|
| | | pushService.pushZNX(uid, Constant.znxConfig.getExtractSuccessTitle(),
|
| | | Constant.znxConfig.getExtractSuccessMsg().replace("[时间]", time));
|
| | | Constant.znxConfig.getExtractSuccessMsg().replace("[时间]", time), null, null);
|
| | | } catch (PushException e) {
|
| | | e.printStackTrace();
|
| | | }
|
| | |
| | | }
|
| | |
|
| | | @Override
|
| | | public void tiChengInviteRecieved(Long uid, BigDecimal money) {
|
| | | public void tiChengInviteRecieved(Long uid, int orderCount, int goodsCount, BigDecimal balance, BigDecimal money) {
|
| | | if (Constant.IS_TEST)
|
| | | return;
|
| | | try {
|
| | | pushService.pushZNX(uid, Constant.znxConfig.getInviteMoneyRecieveTitle(),
|
| | | Constant.znxConfig.getInviteMoneyRecieveMsg().replace("[金额]", money.toString()));
|
| | | Constant.znxConfig.getInviteMoneyRecieveMsg().replace("[金额]", money.toString()), null, null);
|
| | | } catch (PushException e) {
|
| | | e.printStackTrace();
|
| | | }
|
| | |
| | | }
|
| | |
|
| | | @Override
|
| | | public void tiChengShareRecieved(Long uid, BigDecimal money) {
|
| | | public void tiChengShareRecieved(Long uid, int orderCount, int goodsCount, BigDecimal balance, BigDecimal money) {
|
| | | if (Constant.IS_TEST)
|
| | | return;
|
| | | try {
|
| | | pushService.pushZNX(uid, Constant.znxConfig.getShareMoneyRecieveTitle(),
|
| | | Constant.znxConfig.getShareMoneyRecieveMsg().replace("[金额]", money.toString()));
|
| | | Constant.znxConfig.getShareMoneyRecieveMsg().replace("[金额]", money.toString()), null, null);
|
| | | } catch (PushException e) {
|
| | | e.printStackTrace();
|
| | | }
|
| | |
| | | }
|
| | |
|
| | | @Override
|
| | | public void orderShareStatisticed(Long uid, String orderId, BigDecimal money) {
|
| | | public void orderShareStatisticed(Long uid, String orderId, int goodsCount, int orderState, BigDecimal payMoney,
|
| | | BigDecimal money) {
|
| | | if (Constant.IS_TEST)
|
| | | return;
|
| | | orderId = orderId.substring(0, orderId.length() - 6) + "******";
|
| | | try {
|
| | | pushService.pushZNX(uid, Constant.znxConfig.getShareOrderStatisticedTitle(), Constant.znxConfig
|
| | | .getShareOrderStatisticedMsg().replace("[订单号]", orderId).replace("[金额]", money.toString()));
|
| | | .getShareOrderStatisticedMsg().replace("[订单号]", orderId).replace("[金额]", money.toString()), null, null);
|
| | | } catch (PushException e) {
|
| | | e.printStackTrace();
|
| | | }
|
| | |
| | | }
|
| | |
|
| | | @Override
|
| | | public void orderInviteStatisticed(Long uid, String orderId, BigDecimal money) {
|
| | | public void orderInviteStatisticed(Long uid, String orderId, int goodsCount, int orderState, BigDecimal payMoney,
|
| | | BigDecimal money) {
|
| | | if (Constant.IS_TEST)
|
| | | return;
|
| | | orderId = orderId.substring(0, orderId.length() - 6) + "******";
|
| | | try {
|
| | | pushService.pushZNX(uid, Constant.znxConfig.getInviteOrderStatisticedTitle(), Constant.znxConfig
|
| | | .getInviteOrderStatisticedMsg().replace("[订单号]", orderId).replace("[金额]", money.toString()));
|
| | | .getInviteOrderStatisticedMsg().replace("[订单号]", orderId).replace("[金额]", money.toString()), null, null);
|
| | | } catch (PushException e) {
|
| | | e.printStackTrace();
|
| | | }
|
| | |
|
| | | }
|
| | |
|
| | | }
|