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