| | |
| | | if (robotId == null)
|
| | | throw new UserCloudException(1, "云发单机器人不存在");
|
| | |
|
| | | List<String> list = AitaokerApiUtil.getContract(12793);
|
| | | List<String> list = AitaokerApiUtil.getContract(robotId);
|
| | | if (list == null || list.size() == 0)
|
| | | throw new UserCloudException(1, "未检索到对应群");
|
| | |
|
| | |
| | | String result = redisManager.getCommonString(key);
|
| | | if (!StringUtil.isNullOrEmpty(result)) {
|
| | | String groupName = null;
|
| | | WeiXinGroupDTO groupDetail = AitaokerApiUtil.getGroupDetail(12793, roomId);
|
| | | WeiXinGroupDTO groupDetail = AitaokerApiUtil.getGroupDetail(robotId, roomId);
|
| | | if (groupDetail != null) {
|
| | | groupName = groupDetail.getGroupName();
|
| | | }
|
| | |
| | | }
|
| | |
|
| | | @Override
|
| | | public void fixedTimeSend(List<GoodsEvaluate> listActivity, List<GoodsEvaluate> listGoods) {
|
| | | public void fixedTimeSend(List<GoodsEvaluate> listActivity, List<GoodsEvaluate> listGoods, boolean timeLimit) {
|
| | | if (listGoods == null && listActivity == null)
|
| | | return;
|
| | | // 一个小时之前
|
| | |
| | | if (cloudManage == null || cloudManage.getOfficial() == null || !cloudManage.getOfficial()) {
|
| | | continue;
|
| | | }
|
| | | // 是否在一个小时内已发送过
|
| | | UserCloudSendRecord last = userCloudSendRecordService.getLastByUid(uid, lastTime);
|
| | | if (last != null)
|
| | | continue;
|
| | |
|
| | | |
| | | // 时间间隔:是否在一个小时内已发送过
|
| | | if (timeLimit) {
|
| | | UserCloudSendRecord last = userCloudSendRecordService.getLastByUid(uid, lastTime);
|
| | | if (last != null)
|
| | | continue;
|
| | | }
|
| | | |
| | | |
| | | String evaluateId = null;
|
| | | // 活动
|
| | | if (listActivity != null && listActivity.size() > 0) {
|