Browse Source

Merge branch 'develop' into release

tags/V1.6.0^2
wanghaoran 1 year ago
parent
commit
d390a415e9
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      tuoheng-api/src/main/java/com/tuoheng/api/service/impl/WxServiceImpl.java

+ 2
- 1
tuoheng-api/src/main/java/com/tuoheng/api/service/impl/WxServiceImpl.java View File

@@ -14,6 +14,7 @@ import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.Random;


@@ -54,7 +55,7 @@ public class WxServiceImpl implements IWxService {
westreamUserAdd.setNickname("护河行者"+random);
String url = headimgurl.replaceAll("NAME", String.valueOf(new Random().nextInt(11) + 1));
westreamUserAdd.setHeadimgurl(url);
westreamUserAdd.setCreateTime(new Date());
westreamUserMapper.insert(westreamUserAdd);
return JsonResult.success(westreamUserAdd);
}

Loading…
Cancel
Save