推广图片,短信名称,创客申请,和php联通

This commit is contained in:
liuyingfang
2023-07-11 14:08:24 +08:00
parent d47550f8df
commit 8f1b329979
8 changed files with 56 additions and 16 deletions

View File

@@ -766,6 +766,13 @@ public class YSAuditServiceV3 implements cn.pluss.platform.channel.ys.YSAuditSer
mcsService.updateById(mcs);
mercAuditListener.onFail(mbi.getUserId(), mcs, note1);
break;
case YsConfigV3.STATUS_FAIL:
String note2 = authData.getNote();
mcs.setRemark(note2);
mcs.setStatus(MerchantChannelStatus.AUDIT_STATUS_REJECT);
mcsService.updateById(mcs);
mercAuditListener.onFail(mbi.getUserId(), mcs, note2);
break;
case YsConfigV3.STATUS_SIGN_REFUSE:
List<String> excludeStatus = Arrays.asList(MerchantChannelStatus.AUDIT_STATUS_REJECT, MerchantChannelStatus.AUDIT_STATUS_SUCCESS);
MerchantChannelStatus finalMcs = mcs;

View File

@@ -325,7 +325,7 @@ public class MercOrderDetailServiceImpl extends ServiceImpl<MercOrderDetailMappe
client = createClient();
// 1.发送短信
com.aliyun.dysmsapi20170525.models.SendSmsRequest sendSmsRequest = new com.aliyun.dysmsapi20170525.models.SendSmsRequest()
.setSignName("超掌柜")
.setSignName("银收客")
.setTemplateCode("SMS_244665149")
.setTemplateParam("{\"code\":" + "'" + checkCode + "'" + "}")
.setPhoneNumbers(phoneValidateCode.getPhone());

View File

@@ -48,6 +48,7 @@ import cn.pluss.platform.wx.WxTalkService;
import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.metadata.OrderItem;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
@@ -810,6 +811,7 @@ public class UserAppServiceImpl extends ServiceImpl<UserAppMapper, UserApp> impl
break;
case "6":
ysAuditServiceV3.merchantAuditV3(userId, false, 6);
break;
default:
MsgException.throwException("未知的进件通道");
}
@@ -1942,13 +1944,21 @@ public class UserAppServiceImpl extends ServiceImpl<UserAppMapper, UserApp> impl
userMarkerMapper.insert(marker);
}
UserPromotion userPromotion= userPromotionMapper.selectById(userApp.getUserId());
//UserPromotion userPromotion= userPromotionMapper.selectById(userApp.getUserId());
QueryWrapper<UserPromotion> queryWrapper = new QueryWrapper<UserPromotion>();
queryWrapper.eq("user_id", userApp.getUserId());
UserPromotion userPromotion = userPromotionMapper.selectOne(queryWrapper);
if(ObjectUtil.isEmpty(userPromotion)){
MsgException.checkNull(null,"用户信息错误");
}
userPromotion.setIsExtend("3");
userPromotion.setUpdateTime(new Date());
userPromotionMapper.updateById(userPromotion);
UpdateWrapper<UserPromotion> updateWrapper = new UpdateWrapper<>();
updateWrapper.eq("user_id", userPromotion.getUserId())
.set("update_time", new Date())
.set("is_extend", "3");
userPromotionMapper.update(userPromotion,updateWrapper);
}
}