|
@@ -13,10 +13,7 @@ import com.caimei.mapper.ldmMapper.LdmMapper;
|
|
|
import com.caimei.model.ResponseJson;
|
|
|
import com.caimei.model.po.*;
|
|
|
import com.caimei.model.vo.*;
|
|
|
-import com.caimei.service.auth.AuthProductService;
|
|
|
-import com.caimei.service.auth.AuthService;
|
|
|
-import com.caimei.service.auth.ShopService;
|
|
|
-import com.caimei.service.auth.UploadService;
|
|
|
+import com.caimei.service.auth.*;
|
|
|
import com.caimei.utils.*;
|
|
|
import com.github.pagehelper.PageHelper;
|
|
|
import com.github.pagehelper.PageInfo;
|
|
@@ -128,6 +125,10 @@ public class AuthServiceImpl implements AuthService {
|
|
|
@Resource
|
|
|
private ClubMapper clubMapper;
|
|
|
|
|
|
+ @Resource
|
|
|
+ private AuthClubService authClubService;
|
|
|
+
|
|
|
+
|
|
|
@Override
|
|
|
public ResponseJson<PageInfo<AuthVo>> getAuthList(Integer listType, Integer authUserId, String authParty,
|
|
|
String mobile, Integer status, Integer starFlag, Integer auditStatus,
|
|
@@ -1578,16 +1579,16 @@ public class AuthServiceImpl implements AuthService {
|
|
|
authMapper.saveActivityInfo(startTime,endTime,status,authUserId);
|
|
|
//1.7.7ross挑战赛新加逻辑
|
|
|
//活动开启后给供应商下所有机构手机号码发送短信
|
|
|
-// if(status==1){
|
|
|
-// smsSend(authUserId);
|
|
|
-// }
|
|
|
+ if(status==1){
|
|
|
+ smsSend(authUserId);
|
|
|
+ }
|
|
|
}else {
|
|
|
authMapper.upActivityInfo(startTime,endTime,status,authUserId);
|
|
|
//1.7.7ross挑战赛新加逻辑
|
|
|
//活动开启后给供应商下所有机构手机号码发送短信
|
|
|
-// if(status==1){
|
|
|
-// smsSend(authUserId);
|
|
|
-// }
|
|
|
+ if(status==1){
|
|
|
+ smsSend(authUserId);
|
|
|
+ }
|
|
|
}
|
|
|
return ResponseJson.success();
|
|
|
}
|
|
@@ -2156,19 +2157,21 @@ public class AuthServiceImpl implements AuthService {
|
|
|
if(authUserId==12){
|
|
|
authParty="西班牙ROSS";
|
|
|
}
|
|
|
+ //生成短链接
|
|
|
+ String shortLink = authClubService.getShortLink(8, 3, zpServer+"/12/ross/activity/challenge");
|
|
|
//短信类型:1通知短信,2验证码短信,3营销短信
|
|
|
Integer type=3;
|
|
|
//[s{20}]尊敬的会员,ROSS视频挑战赛报名通道已开启,点此【http://f6d.cn/Fgp6r】进入ROSS认证通,了解详情。
|
|
|
- String conn="[" + authParty + "]尊敬的会员,ROSS视频挑战赛报名通道已开启,点此https://zp.caimei365.com/12/ross/activity/challenge进入ROSS认证通,了解详情。";
|
|
|
+ String conn="[" + authParty + "]尊敬的会员,ROSS视频挑战赛报名通道已开启,点此进入www.caimei365.com/t/"+shortLink+" ROSS认证通,了解详情。【采美网提供技术支持】";
|
|
|
if(null!=clubUserList&& clubUserList.size()>0){
|
|
|
clubUserList.stream().forEach(round ->{
|
|
|
if(StringUtils.isNotEmpty(round.getMobile())){
|
|
|
Boolean aBoolean = SmsUtils.sendSms(type, round.getMobile(), conn);
|
|
|
- if(aBoolean){
|
|
|
- log.info("挑战赛短信发送成功"+round.getMobile());
|
|
|
- }else{
|
|
|
- log.info("挑战赛短信发送失败"+round.getMobile());
|
|
|
- }
|
|
|
+// if(aBoolean){
|
|
|
+// log.info("挑战赛短信发送成功"+round.getMobile());
|
|
|
+// }else{
|
|
|
+// log.info("挑战赛短信发送失败"+round.getMobile());
|
|
|
+// }
|
|
|
}
|
|
|
});
|
|
|
}
|