|
@@ -50,6 +50,7 @@ import com.ssj.framework.core.util.StringUtil;
|
|
|
import com.ssj.framework.core.util.SystemResourceLocator;
|
|
|
import com.ssj.framework.idworker.IdWorker;
|
|
|
import com.ssj.framework.weixin.util.DateUtil;
|
|
|
+import com.ssj.framework.weixin.util.NewsUtil;
|
|
|
import com.ssj.service.sys.codeexchange.CodeExchangeService;
|
|
|
import com.ssj.service.sys.imlibuser.service.TbClassService;
|
|
|
import com.ssj.service.sys.imlibuser.service.TbClassStudentService;
|
|
@@ -64,6 +65,8 @@ import com.ssj.service.weixin.sales.service.LibStaffingService;
|
|
|
import com.ssj.service.weixin.sales.service.LibVipCodeService;
|
|
|
import com.ssj.service.weixin.sales.service.LibVipServiceService;
|
|
|
import com.ssj.service.weixin.user.service.UserService;
|
|
|
+import com.ssj.weixin.weixin.message.custom.Text;
|
|
|
+import com.ssj.weixin.weixin.message.custom.TextCustom;
|
|
|
|
|
|
|
|
|
/**
|
|
@@ -1528,6 +1531,8 @@ public class LibOrderDetailsServiceImpl extends BaseServiceImpl<LibOrderDetails,
|
|
|
libVip=vipService.save(libVip);
|
|
|
}
|
|
|
|
|
|
+ libOrderDetails.setVipId(libVip.getId());
|
|
|
+
|
|
|
try {
|
|
|
Date startTime=new Date();
|
|
|
|
|
@@ -1575,11 +1580,21 @@ public class LibOrderDetailsServiceImpl extends BaseServiceImpl<LibOrderDetails,
|
|
|
|
|
|
//给学生增加一个默认的永久校区批改服务
|
|
|
libVipServiceService.insertLibServiceByType(libVip.getId(), libJoin.getId(), libOrderDetails.getEndTime(), libJoin.getSignType());
|
|
|
-
|
|
|
- logger.info("小塾学伴缴费支付成功后,添加销售订单"+libOrderDetails.getId());
|
|
|
|
|
|
tokenManager.createServiceCount("ZUOYB_SERVICE_"+libVip.getId()+"_"+libOrderDetails.getLibId(), "1");
|
|
|
-
|
|
|
+
|
|
|
+ logger.info("小塾学伴缴费支付成功后,添加销售订单"+libOrderDetails.getId());
|
|
|
+
|
|
|
+ if(user!=null && StringUtils.isNotEmpty(user.getAccount())){
|
|
|
+ String fromUrl="https://pan.baidu.com/s/16IWXLP4s7U3reZRUxX5afg";
|
|
|
+ TextCustom textCustom =new TextCustom();
|
|
|
+ textCustom.setMsgtype("text");
|
|
|
+ textCustom.setTouser(user.getAccount());
|
|
|
+ Text text = new Text();
|
|
|
+ text.setContent("恭喜您成功领取价值399元的『1-6年级全科开学大礼包』,<a href=\""+fromUrl+"\">点击打开网盘地址</a>");
|
|
|
+ textCustom.setText(text);
|
|
|
+ NewsUtil.send(tokenManager.getSSJAccessToken(), textCustom);
|
|
|
+ }
|
|
|
}catch(Exception e){
|
|
|
e.printStackTrace();
|
|
|
logger.error("保存购卡信息异常");
|