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