Browse Source

fix couponpwssword bug

release_toaliyun_real
xiaohanzi 5 years ago
parent
commit
581e1fb11b
1 changed files with 2 additions and 2 deletions
  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 View File

@@ -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<>();


Loading…
Cancel
Save