|
|
@ -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());
|
|
|
|