Просмотр исходного кода

fix couponpwssword bug

release_toaliyun_real
xiaohanzi 5 лет назад
Родитель
Сommit
581e1fb11b
1 измененных файлов: 2 добавлений и 2 удалений
  1. +2
    -2
      mallinkService/src/main/java/com/iformall/service/impl/WxCouponPasswordServiceImpl.java

+ 2
- 2
mallinkService/src/main/java/com/iformall/service/impl/WxCouponPasswordServiceImpl.java Просмотреть файл

@@ -93,7 +93,7 @@ public class WxCouponPasswordServiceImpl implements WxCouponPasswordService {
public void deleteById(Long id) { public void deleteById(Long id) {
wxCouponPasswordMapper.deleteById(id); wxCouponPasswordMapper.deleteById(id);
} }
@Override @Override
public void mkPasswords(TenantEntity tenantEntity, Long couponId, Integer inventory) { public void mkPasswords(TenantEntity tenantEntity, Long couponId, Integer inventory) {
String strAll = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"; String strAll = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
@@ -104,7 +104,7 @@ public class WxCouponPasswordServiceImpl implements WxCouponPasswordService {
pwQ.updateTenantInfo(tenantEntity); pwQ.updateTenantInfo(tenantEntity);
List<WxCouponPassword> pwgList = wxCouponPasswordMapper.findCouponGroupList(pwQ); List<WxCouponPassword> pwgList = wxCouponPasswordMapper.findCouponGroupList(pwQ);
couponShort = pwgList.size(); couponShort = pwgList.size();
couponShortStr = String.valueOf(strAll.charAt(couponShort));
couponShortStr = String.valueOf(strAll.charAt(couponShort%62));
// 2.随机字符 // 2.随机字符
Random rand = new Random(); Random rand = new Random();
List<String> pwList = new ArrayList<>(); List<String> pwList = new ArrayList<>();


Загрузка…
Отмена
Сохранить