|
|
|
@ -1767,6 +1767,9 @@ public class RetailAppServiceImp implements RetailAppService {
|
|
|
|
|
@Override
|
|
|
|
|
public JSONObject getAd() {
|
|
|
|
|
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");
|
|
|
|
|
if (acts.size() > 0) {
|
|
|
|
|
int selectNo = RandomUtils.nextInt(0, acts.size());
|
|
|
|
|