清理System.out.println
This commit is contained in:
@@ -170,7 +170,7 @@ public class BookChapterController {
|
|||||||
List<BookChapterEntity> bookChapterEntities = this.bookChapterService.getBaseMapper().selectList(new QueryWrapper<BookChapterEntity>()
|
List<BookChapterEntity> bookChapterEntities = this.bookChapterService.getBaseMapper().selectList(new QueryWrapper<BookChapterEntity>()
|
||||||
.eq("book_id", bookId)
|
.eq("book_id", bookId)
|
||||||
.ge("number", number));
|
.ge("number", number));
|
||||||
System.out.println("bookChapterEntitiesbookChapterEntitiesbookChapterEntities"+bookChapterEntities);
|
// System.out.println("bookChapterEntitiesbookChapterEntitiesbookChapterEntities"+bookChapterEntities);
|
||||||
|
|
||||||
BookChapterEntity bookChapterEntity = null;
|
BookChapterEntity bookChapterEntity = null;
|
||||||
for (BookChapterEntity entity : bookChapterEntities) {
|
for (BookChapterEntity entity : bookChapterEntities) {
|
||||||
|
|||||||
@@ -337,7 +337,7 @@ public class BookForumArticlesServiceController {
|
|||||||
List<BookForumArticlesEntity> newBookList_all = bookForumArticlesService.getBaseMapper().selectList(new QueryWrapper<BookForumArticlesEntity>()
|
List<BookForumArticlesEntity> newBookList_all = bookForumArticlesService.getBaseMapper().selectList(new QueryWrapper<BookForumArticlesEntity>()
|
||||||
.orderByDesc("create_time"));
|
.orderByDesc("create_time"));
|
||||||
Set<BookForumArticlesEntity> uniqueSet = new HashSet<>();
|
Set<BookForumArticlesEntity> uniqueSet = new HashSet<>();
|
||||||
System.out.println();
|
// System.out.println();
|
||||||
for (BookForumArticlesEntity entity : newBookList_all) {
|
for (BookForumArticlesEntity entity : newBookList_all) {
|
||||||
boolean isUnique = true;
|
boolean isUnique = true;
|
||||||
for (BookForumArticlesEntity uniqueEntity : uniqueSet) {
|
for (BookForumArticlesEntity uniqueEntity : uniqueSet) {
|
||||||
@@ -374,7 +374,7 @@ public class BookForumArticlesServiceController {
|
|||||||
String title = book.getTitle();
|
String title = book.getTitle();
|
||||||
Date createTime = book.getCreateTime();
|
Date createTime = book.getCreateTime();
|
||||||
List<BookEntity> id = bookService.getBaseMapper().selectList(new QueryWrapper<BookEntity>().in("id", bookid1));
|
List<BookEntity> id = bookService.getBaseMapper().selectList(new QueryWrapper<BookEntity>().in("id", bookid1));
|
||||||
System.out.println("id==========="+id);
|
// System.out.println("id==========="+id);
|
||||||
for (BookEntity bookentity : id) {
|
for (BookEntity bookentity : id) {
|
||||||
String authorName = "";
|
String authorName = "";
|
||||||
String images = bookentity.getImages();
|
String images = bookentity.getImages();
|
||||||
@@ -410,7 +410,7 @@ public class BookForumArticlesServiceController {
|
|||||||
bookForumArticlesVO.setContent(content);
|
bookForumArticlesVO.setContent(content);
|
||||||
bookForumArticlesVO.setCreate_time(createTime);
|
bookForumArticlesVO.setCreate_time(createTime);
|
||||||
list.add(bookForumArticlesVO);
|
list.add(bookForumArticlesVO);
|
||||||
System.out.println(list);
|
// System.out.println(list);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -74,7 +74,7 @@ public class BookShelfController {
|
|||||||
|
|
||||||
.eq("book_id", bookShelf.getBookId())
|
.eq("book_id", bookShelf.getBookId())
|
||||||
.eq("user_id", bookShelf.getUserId()));
|
.eq("user_id", bookShelf.getUserId()));
|
||||||
System.out.println("bookShelf"+bookShelf);
|
// System.out.println("bookShelf"+bookShelf);
|
||||||
if (integer > 0){
|
if (integer > 0){
|
||||||
return R.error(500,"当前书籍已加入书架");
|
return R.error(500,"当前书籍已加入书架");
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -453,7 +453,7 @@ public class BuyOrderController {
|
|||||||
List<BuyOrder> list = buyOrderService.list(wrapper);
|
List<BuyOrder> list = buyOrderService.list(wrapper);
|
||||||
for (BuyOrder b : list){
|
for (BuyOrder b : list){
|
||||||
List<Integer> orderBookId = shopProductBookService.getOrderBookId(b.getOrderSn());
|
List<Integer> orderBookId = shopProductBookService.getOrderBookId(b.getOrderSn());
|
||||||
System.out.println(orderBookId);
|
// System.out.println(orderBookId);
|
||||||
userEbookBuyService.addBookForUser(b.getUserId(),orderBookId);
|
userEbookBuyService.addBookForUser(b.getUserId(),orderBookId);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -367,7 +367,6 @@ public class MyUserController {
|
|||||||
@Transactional
|
@Transactional
|
||||||
public R registerOrLogin(String tel, String code,String inviteCode) {
|
public R registerOrLogin(String tel, String code,String inviteCode) {
|
||||||
String redisCode = redisTemplate.opsForValue().get("RegistCode" + tel);
|
String redisCode = redisTemplate.opsForValue().get("RegistCode" + tel);
|
||||||
System.out.println(redisCode);
|
|
||||||
if (StringUtils.isEmpty(redisCode)){
|
if (StringUtils.isEmpty(redisCode)){
|
||||||
return R.error(500,"验证码已过期,请重试");
|
return R.error(500,"验证码已过期,请重试");
|
||||||
}
|
}
|
||||||
@@ -466,7 +465,6 @@ public class MyUserController {
|
|||||||
@RequestParam("password") String password,
|
@RequestParam("password") String password,
|
||||||
@RequestParam("code") String code) {
|
@RequestParam("code") String code) {
|
||||||
String redisCode = redisTemplate.opsForValue().get("RegistCode" + phone);
|
String redisCode = redisTemplate.opsForValue().get("RegistCode" + phone);
|
||||||
System.out.println(redisCode);
|
|
||||||
if (StringUtils.isEmpty(redisCode)){
|
if (StringUtils.isEmpty(redisCode)){
|
||||||
return R.error(500,"验证码已过期,请重试");
|
return R.error(500,"验证码已过期,请重试");
|
||||||
}
|
}
|
||||||
@@ -501,11 +499,6 @@ public class MyUserController {
|
|||||||
@RequestParam(value = "hsuserId", required = false) Integer hsuserId) {
|
@RequestParam(value = "hsuserId", required = false) Integer hsuserId) {
|
||||||
|
|
||||||
String s = HttpUtil.get("http://101.201.146.165:8088/App-EH/app/phone.do?login&loginName="+ phone +"&loginPwd="+ password +"");
|
String s = HttpUtil.get("http://101.201.146.165:8088/App-EH/app/phone.do?login&loginName="+ phone +"&loginPwd="+ password +"");
|
||||||
|
|
||||||
System.out.println(s);
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//将结果转成json 取值
|
//将结果转成json 取值
|
||||||
JSONObject jsonObject = JSON.parseObject(s);
|
JSONObject jsonObject = JSON.parseObject(s);
|
||||||
|
|
||||||
@@ -521,7 +514,6 @@ public class MyUserController {
|
|||||||
String nameCN = jsonObject.getJSONObject("obj").getString("nameCN");
|
String nameCN = jsonObject.getJSONObject("obj").getString("nameCN");
|
||||||
// String password = jsonObject.getJSONObject("obj").getString("pass");
|
// String password = jsonObject.getJSONObject("obj").getString("pass");
|
||||||
|
|
||||||
System.out.println("=====================yljkOid=============================="+yljkOid);
|
|
||||||
|
|
||||||
|
|
||||||
//查询 当前 花生账号 和 当前绑定的 一路健康账号是否有绑定 关系
|
//查询 当前 花生账号 和 当前绑定的 一路健康账号是否有绑定 关系
|
||||||
@@ -575,7 +567,6 @@ public class MyUserController {
|
|||||||
|
|
||||||
String redisCode = redisTemplate.opsForValue().get("RegistCode" + phone);
|
String redisCode = redisTemplate.opsForValue().get("RegistCode" + phone);
|
||||||
|
|
||||||
System.out.println(redisCode);
|
|
||||||
|
|
||||||
if (StringUtils.isEmpty(redisCode)){
|
if (StringUtils.isEmpty(redisCode)){
|
||||||
return R.error(500,"短信验证码已过期,请重试");
|
return R.error(500,"短信验证码已过期,请重试");
|
||||||
|
|||||||
@@ -84,7 +84,7 @@ public class BookChapterContentServiceImpl extends ServiceImpl<BookChapterConten
|
|||||||
@Override
|
@Override
|
||||||
public PageUtils queryPage(Map<String, Object> params) {
|
public PageUtils queryPage(Map<String, Object> params) {
|
||||||
Object chapterid = params.get("chapterid");
|
Object chapterid = params.get("chapterid");
|
||||||
System.out.println(chapterid);
|
// System.out.println(chapterid);
|
||||||
IPage<BookChapterContentEntity> page = this.page(
|
IPage<BookChapterContentEntity> page = this.page(
|
||||||
new Query<BookChapterContentEntity>().getPage(params),
|
new Query<BookChapterContentEntity>().getPage(params),
|
||||||
new QueryWrapper<BookChapterContentEntity>().eq("book_id",params.get("bookid"))
|
new QueryWrapper<BookChapterContentEntity>().eq("book_id",params.get("bookid"))
|
||||||
@@ -120,7 +120,7 @@ public class BookChapterContentServiceImpl extends ServiceImpl<BookChapterConten
|
|||||||
bcce.setContent(content.substring(start,end));
|
bcce.setContent(content.substring(start,end));
|
||||||
bcce.setNumber(++count);
|
bcce.setNumber(++count);
|
||||||
save(bcce);
|
save(bcce);
|
||||||
System.out.println(content.substring(start,end));
|
// System.out.println(content.substring(start,end));
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ public class BookChapterServiceImpl extends ServiceImpl<BookChapterDao, BookChap
|
|||||||
@Override
|
@Override
|
||||||
public PageUtils queryPage1(Map<String, Object> params) {
|
public PageUtils queryPage1(Map<String, Object> params) {
|
||||||
Object chapterid = params.get("chapterid");
|
Object chapterid = params.get("chapterid");
|
||||||
System.out.println(chapterid);
|
// System.out.println(chapterid);
|
||||||
IPage<BookChapterEntity> page = this.page(
|
IPage<BookChapterEntity> page = this.page(
|
||||||
new Query<BookChapterEntity>().getPage(params),
|
new Query<BookChapterEntity>().getPage(params),
|
||||||
new QueryWrapper<BookChapterEntity>().eq("book_id",params.get("bookid"))
|
new QueryWrapper<BookChapterEntity>().eq("book_id",params.get("bookid"))
|
||||||
|
|||||||
@@ -195,7 +195,7 @@ public class BookServiceImpl extends ServiceImpl<BookDao, BookEntity> implements
|
|||||||
}
|
}
|
||||||
if (n == 0) {
|
if (n == 0) {
|
||||||
indexOf1 = newStr.indexOf(newChapterName);
|
indexOf1 = newStr.indexOf(newChapterName);
|
||||||
System.out.println("indexOf1" + indexOf1);
|
// System.out.println("indexOf1" + indexOf1);
|
||||||
}
|
}
|
||||||
n = 1;
|
n = 1;
|
||||||
bflag = true;
|
bflag = true;
|
||||||
@@ -209,8 +209,8 @@ public class BookServiceImpl extends ServiceImpl<BookDao, BookEntity> implements
|
|||||||
content.setContent(substring.trim());
|
content.setContent(substring.trim());
|
||||||
content.setBookId(bookEntityId);
|
content.setBookId(bookEntityId);
|
||||||
content.setNumber(++linecount);
|
content.setNumber(++linecount);
|
||||||
System.out.println(substring);
|
// System.out.println(substring);
|
||||||
System.out.println(content.toString());
|
// System.out.println(content.toString());
|
||||||
bookChapterService.save(content);
|
bookChapterService.save(content);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -380,9 +380,9 @@ public class BookServiceImpl extends ServiceImpl<BookDao, BookEntity> implements
|
|||||||
//遍历Paragraph,每个小节下有若干段落
|
//遍历Paragraph,每个小节下有若干段落
|
||||||
for (int j = 0; j < section.getParagraphs().getCount() - 1; j++) {
|
for (int j = 0; j < section.getParagraphs().getCount() - 1; j++) {
|
||||||
Paragraph paragraph = section.getParagraphs().get(j);
|
Paragraph paragraph = section.getParagraphs().get(j);
|
||||||
System.out.println(paragraph.getStyleName() + "-----");
|
// System.out.println(paragraph.getStyleName() + "-----");
|
||||||
System.out.println(paragraph.getText().trim());
|
// System.out.println(paragraph.getText().trim());
|
||||||
System.out.println(StringUtils.isNotBlank(paragraph.getText().trim()));
|
// System.out.println(StringUtils.isNotBlank(paragraph.getText().trim()));
|
||||||
//获取标题
|
//获取标题
|
||||||
if (paragraph.getStyleName().equals("Heading1") && StringUtils.isNotBlank(paragraph.getText().trim()))//段落样式为“标题1”的内容
|
if (paragraph.getStyleName().equals("Heading1") && StringUtils.isNotBlank(paragraph.getText().trim()))//段落样式为“标题1”的内容
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -54,7 +54,7 @@ public class BuyOrderDetailServiceImpl extends ServiceImpl<BuyOrderDetailDao, Bu
|
|||||||
.eq("user_id",userid)
|
.eq("user_id",userid)
|
||||||
|
|
||||||
);
|
);
|
||||||
System.out.println("=====querybuy=====userid================"+userid);
|
// System.out.println("=====querybuy=====userid================"+userid);
|
||||||
return new PageUtils(page);
|
return new PageUtils(page);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -112,7 +112,7 @@ public class MyUserServiceImpl extends ServiceImpl<MyUserDao, MyUserEntity> impl
|
|||||||
// 复制代码运行请自行打印 API 的返回值
|
// 复制代码运行请自行打印 API 的返回值
|
||||||
SendSmsResponse sendSmsResponse = client.sendSmsWithOptions(sendSmsRequest, runtime);
|
SendSmsResponse sendSmsResponse = client.sendSmsWithOptions(sendSmsRequest, runtime);
|
||||||
SendSmsResponseBody body = sendSmsResponse.getBody();
|
SendSmsResponseBody body = sendSmsResponse.getBody();
|
||||||
System.out.println(body.getMessage());
|
// System.out.println(body.getMessage());
|
||||||
|
|
||||||
} catch (TeaException error) {
|
} catch (TeaException error) {
|
||||||
// 如有需要,请打印 error
|
// 如有需要,请打印 error
|
||||||
|
|||||||
@@ -55,7 +55,7 @@ public class OrderCartServiceImpl extends ServiceImpl<OrderCartDao, OrderCartEnt
|
|||||||
Integer productId = orderCartEntity.getProductId();
|
Integer productId = orderCartEntity.getProductId();
|
||||||
|
|
||||||
ShopProduct productEntity = shopProductService.getById(productId);
|
ShopProduct productEntity = shopProductService.getById(productId);
|
||||||
System.out.println("productEntity=============================="+productEntity);
|
// System.out.println("productEntity=============================="+productEntity);
|
||||||
if (productEntity != null) {
|
if (productEntity != null) {
|
||||||
ShopCartVo shopCartVo = new ShopCartVo();
|
ShopCartVo shopCartVo = new ShopCartVo();
|
||||||
|
|
||||||
|
|||||||
@@ -60,7 +60,7 @@ public class ShopCategoryServiceImpl extends ServiceImpl<ShopCategoryDao, ShopCa
|
|||||||
@Override
|
@Override
|
||||||
public List<ShopCategoryEntity> getOneLevel() {
|
public List<ShopCategoryEntity> getOneLevel() {
|
||||||
List<ShopCategoryEntity> list = this.list(new QueryWrapper<ShopCategoryEntity>().eq("parent_cid", 1).eq("show_status", 1));
|
List<ShopCategoryEntity> list = this.list(new QueryWrapper<ShopCategoryEntity>().eq("parent_cid", 1).eq("show_status", 1));
|
||||||
System.out.println("list=================================="+list);
|
// System.out.println("list=================================="+list);
|
||||||
|
|
||||||
// List<ShopCategoryEntity> list = this.list(new QueryWrapper<ShopCategoryEntity>().eq("name", "医学视频").eq("show_status", 1));
|
// List<ShopCategoryEntity> list = this.list(new QueryWrapper<ShopCategoryEntity>().eq("name", "医学视频").eq("show_status", 1));
|
||||||
|
|
||||||
|
|||||||
@@ -198,7 +198,7 @@ public class UserController {
|
|||||||
@Transactional
|
@Transactional
|
||||||
public R register(String tel, String code,String inviteCode) {
|
public R register(String tel, String code,String inviteCode) {
|
||||||
String redisCode = redisTemplate.opsForValue().get("RegistCode" + tel);
|
String redisCode = redisTemplate.opsForValue().get("RegistCode" + tel);
|
||||||
System.out.println(redisCode);
|
// System.out.println(redisCode);
|
||||||
if (StringUtils.isEmpty(redisCode)){
|
if (StringUtils.isEmpty(redisCode)){
|
||||||
return R.error(500,"验证码已过期,请重试");
|
return R.error(500,"验证码已过期,请重试");
|
||||||
}
|
}
|
||||||
@@ -288,7 +288,6 @@ public class UserController {
|
|||||||
@RequestParam("password") String password,
|
@RequestParam("password") String password,
|
||||||
@RequestParam("code") String code) {
|
@RequestParam("code") String code) {
|
||||||
String redisCode = redisTemplate.opsForValue().get("RegistCode" + phone);
|
String redisCode = redisTemplate.opsForValue().get("RegistCode" + phone);
|
||||||
System.out.println(redisCode);
|
|
||||||
if (StringUtils.isEmpty(redisCode)){
|
if (StringUtils.isEmpty(redisCode)){
|
||||||
return R.error(500,"验证码已过期,请重试");
|
return R.error(500,"验证码已过期,请重试");
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -57,7 +57,7 @@ public class MyUserServiceImpl extends ServiceImpl<MyUserDao, MyUserEntity> impl
|
|||||||
// 复制代码运行请自行打印 API 的返回值
|
// 复制代码运行请自行打印 API 的返回值
|
||||||
SendSmsResponse sendSmsResponse = client.sendSmsWithOptions(sendSmsRequest, runtime);
|
SendSmsResponse sendSmsResponse = client.sendSmsWithOptions(sendSmsRequest, runtime);
|
||||||
SendSmsResponseBody body = sendSmsResponse.getBody();
|
SendSmsResponseBody body = sendSmsResponse.getBody();
|
||||||
System.out.println(body.getMessage());
|
// System.out.println(body.getMessage());
|
||||||
} catch (TeaException error) {
|
} catch (TeaException error) {
|
||||||
// 如有需要,请打印 error
|
// 如有需要,请打印 error
|
||||||
Common.assertAsString(error.message);
|
Common.assertAsString(error.message);
|
||||||
|
|||||||
@@ -437,7 +437,7 @@ public class UserCertificateServiceImpl extends ServiceImpl<UserCertificateDao,
|
|||||||
File outputfile = new File("F:\\certificate\\template\\"+ filename +".jpg");
|
File outputfile = new File("F:\\certificate\\template\\"+ filename +".jpg");
|
||||||
ImageIO.write(image, "jpg", outputfile);
|
ImageIO.write(image, "jpg", outputfile);
|
||||||
|
|
||||||
System.out.println(no +","+ name +","+ filename);
|
// System.out.println(no +","+ name +","+ filename);
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
throw new RuntimeException(e);
|
throw new RuntimeException(e);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ public class CourseTask implements ITask{
|
|||||||
userCourseBuyEntity.getId(),
|
userCourseBuyEntity.getId(),
|
||||||
messagePostProcessor(DateUtils.addYears(userCourseBuyEntity.getCreateTime(),1).getTime()-new Date().getTime())
|
messagePostProcessor(DateUtils.addYears(userCourseBuyEntity.getCreateTime(),1).getTime()-new Date().getTime())
|
||||||
);
|
);
|
||||||
System.out.println(new Date()+"未开始学习,超过一年自动开始,加入队列");
|
// System.out.println(new Date()+"未开始学习,超过一年自动开始,加入队列");
|
||||||
}
|
}
|
||||||
}else {
|
}else {
|
||||||
//结束时间,过期删除
|
//结束时间,过期删除
|
||||||
@@ -50,7 +50,7 @@ public class CourseTask implements ITask{
|
|||||||
userCourseBuyEntity.getId(),
|
userCourseBuyEntity.getId(),
|
||||||
messagePostProcessor(userCourseBuyEntity.getEndTime().getTime()-new Date().getTime())
|
messagePostProcessor(userCourseBuyEntity.getEndTime().getTime()-new Date().getTime())
|
||||||
);
|
);
|
||||||
System.out.println(new Date()+"过期删除,加入队列");
|
// System.out.println(new Date()+"过期删除,加入队列");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -30,10 +30,7 @@ public class ExpressTask implements ITask{
|
|||||||
@Override
|
@Override
|
||||||
public void run(String params) {
|
public void run(String params) {
|
||||||
System.out.println(new Date());
|
System.out.println(new Date());
|
||||||
System.out.println("------expressTask定时任务正在执行------");
|
System.out.println("------expressTask查询快递修改状态定时任务正在执行------");
|
||||||
System.out.println("------查询快递修改状态定时任务正在执行------");
|
|
||||||
System.out.println("------expressTask定时任务正在执行------");
|
|
||||||
|
|
||||||
LambdaQueryWrapper<BuyOrder> wrapper = new LambdaQueryWrapper();
|
LambdaQueryWrapper<BuyOrder> wrapper = new LambdaQueryWrapper();
|
||||||
wrapper.eq(BuyOrder::getOrderStatus,"2");
|
wrapper.eq(BuyOrder::getOrderStatus,"2");
|
||||||
List<BuyOrder> list = buyOrderService.list(wrapper);
|
List<BuyOrder> list = buyOrderService.list(wrapper);
|
||||||
@@ -74,9 +71,6 @@ public class ExpressTask implements ITask{
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
System.out.println("------expressTask查询快递修改状态定时任务执行完毕------");
|
||||||
System.out.println("------expressTask定时任务执行完毕------");
|
|
||||||
System.out.println("------查询快递修改状态定时任务执行完毕------");
|
|
||||||
System.out.println("------expressTask定时任务执行完毕------");
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -134,7 +134,7 @@ public class UserCourseBuyTask implements ITask{
|
|||||||
addClassStatement.setTimestamp(7,Timestamp.valueOf(DateUtil.format(endDate,"yyyy-MM-dd HH:mm:ss")));
|
addClassStatement.setTimestamp(7,Timestamp.valueOf(DateUtil.format(endDate,"yyyy-MM-dd HH:mm:ss")));
|
||||||
}
|
}
|
||||||
addClassStatement.execute();
|
addClassStatement.execute();
|
||||||
System.out.println(userId+"-"+courseId+"-"+catalogueId);
|
// System.out.println(userId+"-"+courseId+"-"+catalogueId);
|
||||||
}
|
}
|
||||||
userCourseBuyStatement.close();
|
userCourseBuyStatement.close();
|
||||||
userCourseBuyResultSet.close();
|
userCourseBuyResultSet.close();
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ public class UserVipConsumer {
|
|||||||
MyUserEntity user = userDao.selectById(userVip.getUserId());
|
MyUserEntity user = userDao.selectById(userVip.getUserId());
|
||||||
user.setVip("0");
|
user.setVip("0");
|
||||||
userDao.updateById(user);
|
userDao.updateById(user);
|
||||||
System.out.println(user.getName()+"-"+user.getTel()+"-"+user.getEmail()+"超v过期,vip更新完成");
|
// System.out.println(user.getName()+"-"+user.getTel()+"-"+user.getEmail()+"超v过期,vip更新完成");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -64,7 +64,7 @@ public class OssServiceImpl implements OssService {
|
|||||||
}else {
|
}else {
|
||||||
//带进度条
|
//带进度条
|
||||||
long fileSize = file.getSize();
|
long fileSize = file.getSize();
|
||||||
System.out.println(uid+ "" +url);
|
// System.out.println(uid+ "" +url);
|
||||||
ossClient.putObject(new PutObjectRequest(bucketName,fileName, inputStream).
|
ossClient.putObject(new PutObjectRequest(bucketName,fileName, inputStream).
|
||||||
withProgressListener(new PutObjectProgressListener(fileSize,uid,url)));
|
withProgressListener(new PutObjectProgressListener(fileSize,uid,url)));
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -61,7 +61,7 @@ public class ApplePayController {
|
|||||||
@ResponseBody
|
@ResponseBody
|
||||||
public Result<Object> iPayNotify(@RequestBody IPayNotifyPo iPayNotifyPo) {
|
public Result<Object> iPayNotify(@RequestBody IPayNotifyPo iPayNotifyPo) {
|
||||||
log.info("ios支付成功后验证结果[前端传递的ios支付参数:{}]", iPayNotifyPo.toString());
|
log.info("ios支付成功后验证结果[前端传递的ios支付参数:{}]", iPayNotifyPo.toString());
|
||||||
System.out.println("支付");
|
// System.out.println("支付");
|
||||||
String receipt = iPayNotifyPo.getTransactionReceipt();
|
String receipt = iPayNotifyPo.getTransactionReceipt();
|
||||||
// 拿到收据的MD5
|
// 拿到收据的MD5
|
||||||
String receiptMd5 = SecureUtil.md5(receipt);
|
String receiptMd5 = SecureUtil.md5(receipt);
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ public class OAuth2Realm extends AuthorizingRealm {
|
|||||||
@Override
|
@Override
|
||||||
protected AuthorizationInfo doGetAuthorizationInfo(PrincipalCollection principals) {
|
protected AuthorizationInfo doGetAuthorizationInfo(PrincipalCollection principals) {
|
||||||
long userId = 0;
|
long userId = 0;
|
||||||
System.out.println("aaaaa"+principals.getPrimaryPrincipal());
|
// System.out.println("aaaaa"+principals.getPrimaryPrincipal());
|
||||||
if (principals.toString().contains("MyUserEntity")){
|
if (principals.toString().contains("MyUserEntity")){
|
||||||
MyUserEntity user = (MyUserEntity) principals.getPrimaryPrincipal();
|
MyUserEntity user = (MyUserEntity) principals.getPrimaryPrincipal();
|
||||||
userId = Long.valueOf(user.getId());
|
userId = Long.valueOf(user.getId());
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ public class WeixinApiController {
|
|||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
String token = getAccessToken("ed1eb116f91a49a4ec1ec37c6f8f9495");
|
String token = getAccessToken("ed1eb116f91a49a4ec1ec37c6f8f9495");
|
||||||
String tel = login(token,"0a3nul100iDgdU1T0J300E82Yk1nul1O");
|
String tel = login(token,"0a3nul100iDgdU1T0J300E82Yk1nul1O");
|
||||||
System.out.println(tel);
|
// System.out.println(tel);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user