|
|
|
@ -720,17 +720,14 @@ public class RetailAppServiceImp implements RetailAppService {
|
|
|
|
|
}
|
|
|
|
|
JSONObject managerMsg = new JSONObject();
|
|
|
|
|
managerMsg.put("title", LocaleSupport.localeMessage("app.message.title.daily_notice"));
|
|
|
|
|
managerMsg.put("body", trade_date + ": 总交易额 "
|
|
|
|
|
+ PlatformEnvironment.getEnv().getForeignCurrency() + total_amount + ", 订单数:" + total_orders + ", 付款人数:" + customers);
|
|
|
|
|
managerMsg.put("body", trade_date + ": 总交易额 " + PlatformEnvironment.getEnv().getForeignCurrency() + total_amount + ", 订单数:" + total_orders
|
|
|
|
|
+ ", 付款人数:" + customers);
|
|
|
|
|
managerMsg.put("type", type);
|
|
|
|
|
managerMsg.put("data", tradeInfo);
|
|
|
|
|
managerMsg.put("msgType", "daily_notice");
|
|
|
|
|
AppMessage appMessage = new AppManagerMessageBuilder(managerMsg).buildMessage();
|
|
|
|
|
sender.sendMessage(appMessage, devToken);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
log.put("status", 2);
|
|
|
|
|
appMessageLogMapper.update(log);
|
|
|
|
|
} catch (Exception e) {
|
|
|
|
@ -845,9 +842,18 @@ public class RetailAppServiceImp implements RetailAppService {
|
|
|
|
|
res.put("customer_surcharge_rate", client.getBigDecimal("customer_surcharge_rate"));
|
|
|
|
|
}
|
|
|
|
|
res.put("max_customer_surcharge_rate", PlatformEnvironment.getEnv().getMaxCustomerSurchargeRate());
|
|
|
|
|
channels.add(getChannel(clientId, now, "Wechat"));
|
|
|
|
|
channels.add(getChannel(clientId, now, "Alipay"));
|
|
|
|
|
channels.add(getChannel(clientId, now, "Bestpay"));
|
|
|
|
|
JSONObject wechat = getChannel(clientId, now, "Wechat");
|
|
|
|
|
if (wechat.containsKey("channel")) {
|
|
|
|
|
channels.add(wechat);
|
|
|
|
|
}
|
|
|
|
|
JSONObject alipay = getChannel(clientId, now, "Alipay");
|
|
|
|
|
if (wechat.containsKey("channel")) {
|
|
|
|
|
channels.add(alipay);
|
|
|
|
|
}
|
|
|
|
|
JSONObject bestpay = getChannel(clientId, now, "Bestpay");
|
|
|
|
|
if (wechat.containsKey("channel")) {
|
|
|
|
|
channels.add(bestpay);
|
|
|
|
|
}
|
|
|
|
|
JSONObject jd = getChannel(clientId, now, "jd");
|
|
|
|
|
if (jd.containsKey("channel")) {
|
|
|
|
|
channels.add(jd);
|
|
|
|
|