...
|
...
|
@@ -91,14 +91,14 @@ public class RedisCache { |
|
|
}
|
|
|
}
|
|
|
|
|
|
// 从单中心获取同一个redis的排队队列
|
|
|
// 通过配置,决定是否从单中心获取同一个redis的排队队列
|
|
|
public int getSortId(int activityId) {
|
|
|
if (configReader.getBoolean(ACTIVITY_GET_SORT_METHOD_SWITCH, true)) {
|
|
|
log.info("method RedisCache.getSortId(int) enter getSortIdByNoSyn");
|
|
|
if (configReader.getBoolean(ACTIVITY_GET_SORT_METHOD_SWITCH, false)) {
|
|
|
log.info("method RedisCache.getSortId(int) enter getSortIdByNoSyn"); // 从单中心走
|
|
|
return getSortIdByNoSyn(activityId);
|
|
|
}
|
|
|
|
|
|
log.info("method RedisCache.getSortId(int) enter getSortIdBySyn");
|
|
|
log.info("method RedisCache.getSortId(int) enter getSortIdBySyn"); // 不从单中心走
|
|
|
return getSortIdBySyn(activityId);
|
|
|
}
|
|
|
|
...
|
...
|
@@ -108,7 +108,7 @@ public class RedisCache { |
|
|
* @return
|
|
|
*/
|
|
|
public int getSortIdByNoSyn(int activityId) {
|
|
|
String url = singleCenterDomain + "?method=yoho.activity.getSortId";
|
|
|
String url = singleCenterDomain + "/activity/sendCoupon/CouponActivityController/getSortIdBySingleCent";
|
|
|
DrawlineUserQueueReqBO req = new DrawlineUserQueueReqBO();
|
|
|
req.setActivityId(activityId);
|
|
|
|
...
|
...
|
|