|
|
|
@ -1187,6 +1187,19 @@ public class RetailAppServiceImp implements RetailAppService {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public JSONObject getAdDetail(JSONObject device, String article_id) {
|
|
|
|
|
String clientType = device.getString("client_type");
|
|
|
|
|
deviceSupport.findRegister(clientType);
|
|
|
|
|
JSONObject res = royalPayCMSSupport.getArticle("app_ad", article_id);
|
|
|
|
|
Document doc = Jsoup.parse(res.getString("content"));
|
|
|
|
|
String father = "<div style=\"padding:0 10px\"></div>";
|
|
|
|
|
String html = doc.body().children().wrap(father).html();
|
|
|
|
|
res.put("content", doc.html());
|
|
|
|
|
res.put("publish_time_format", TimeZoneUtils.formatTime(res.getDate("publish_time"), "yyyy-MM-dd HH:mm:ss", "Australia/Melbourne"));
|
|
|
|
|
return res;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private static boolean mathchLetterorNum(String str) {
|
|
|
|
|
String regex = "[A-Za-z0-9]{8}";
|
|
|
|
|
return str.matches(regex);
|
|
|
|
|