master
luoyang 6 years ago
parent 94c1d06497
commit 9d05bcd948

@ -1767,6 +1767,9 @@ public class RetailAppServiceImp implements RetailAppService {
@Override @Override
public JSONObject getAd() { public JSONObject getAd() {
JSONObject res = royalPayCMSSupport.listArticles("app_ad", false, true, 1, 10); JSONObject res = royalPayCMSSupport.listArticles("app_ad", false, true, 1, 10);
logger.debug("ddddddddddddddddasda " + res.toJSONString());
System.out.println("ddddddddddddddddasda " + res.toJSONString());
JSONArray acts = res.getJSONArray("data"); JSONArray acts = res.getJSONArray("data");
if (acts.size() > 0) { if (acts.size() > 0) {
int selectNo = RandomUtils.nextInt(0, acts.size()); int selectNo = RandomUtils.nextInt(0, acts.size());

Loading…
Cancel
Save