app message sending api update

master
yixian 5 years ago
parent 5ea3a11d87
commit 473b965151

@ -4,6 +4,7 @@ import au.com.royalpay.payment.manage.pushMessage.bean.AppManagerMessageBuilder;
import au.com.royalpay.payment.manage.pushMessage.bean.AppMessageType; import au.com.royalpay.payment.manage.pushMessage.bean.AppMessageType;
import au.com.royalpay.payment.tools.device.message.AppMessage; import au.com.royalpay.payment.tools.device.message.AppMessage;
import au.com.royalpay.payment.tools.env.RequestEnvironment; import au.com.royalpay.payment.tools.env.RequestEnvironment;
import au.com.royalpay.payment.tools.permission.enums.PartnerRole;
import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.JSONObject;
import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.StringUtils;
@ -21,7 +22,7 @@ public class RetailAppMessage {
JSONObject msg = new JSONObject(); JSONObject msg = new JSONObject();
msg.put("appid", appid); msg.put("appid", appid);
msg.put("client_id", clientId); msg.put("client_id", clientId);
msg.put("role", "admin"); msg.put("role", PartnerRole.ADMIN.getCode());
msg.put("title", title); msg.put("title", title);
msg.put("body", body); msg.put("body", body);
msg.put("send_time", new Date()); msg.put("send_time", new Date());

Loading…
Cancel
Save