| | |
| | |
|
| | | String tearcherLink = configService.getByVersion(ConfigKeyEnum.tearcherLink.getKey(),
|
| | | acceptData.getPlatform(), Integer.parseInt(acceptData.getVersion()));
|
| | | if (userActivedRecordService.canNotifyAddTearcher(uid)) {
|
| | | if (userActivedRecordService.canNotifyAddTearcher(uid) && !StringUtil.isNullOrEmpty(tearcherLink)) {
|
| | | UserInfo userInfo = userInfoService.selectAvailableByPrimaryKey(uid);
|
| | | if (userInfo != null) {
|
| | | JumpDetailV2 jumpDetail = jumpDetailV2Service.getByTypeCache("web",
|
| | |
| | | list.add(map.get(TYPE_FAQUAN)); |
| | | list.add(map.get(TYPE_HUODONG)); |
| | | // list.add(map.get(TYPE_XUEYUAN)); |
| | | list.add(map.get(TYPE_SUCAI)); |
| | | |
| | | // list.add(map.get(TYPE_SUCAI)); |
| | | } else if (VersionUtil.greaterThan_2_0_6(acceptData.getPlatform(), acceptData.getVersion())) { |
| | | // 2.0.6返回热销+活动+推荐+学院+邀请 |
| | | list.add(map.get(TYPE_REXIAO)); |
| | |
| | | package com.yeshi.fanli.controller.devops;
|
| | |
|
| | | import java.io.PrintWriter;
|
| | |
|
| | | import javax.annotation.Resource;
|
| | |
|
| | | import org.springframework.stereotype.Controller;
|
| | | import org.springframework.web.bind.annotation.RequestMapping;
|
| | |
|
| | | import com.yeshi.fanli.entity.bus.user.HongBaoV2;
|
| | | import com.yeshi.fanli.exception.order.TaoBaoWeiQuanException;
|
| | | import com.yeshi.fanli.service.inter.order.OrderProcessService;
|
| | |
|
| | | /**
|
| | | * 运维订单接口
|
| | |
| | | @RequestMapping("devops/order")
|
| | | public class OrderDevOpsController {
|
| | |
|
| | | @Resource
|
| | | private OrderProcessService orderProcessService;
|
| | |
|
| | | |
| | | |
| | | /**
|
| | | * 返利
|
| | | * @param hongBaoId
|
| | | * @param out
|
| | | */
|
| | | @RequestMapping("fanliByHongBaoId")
|
| | | public void fanli(Long hongBaoId, PrintWriter out) {
|
| | | try {
|
| | | orderProcessService.fanli(new HongBaoV2(hongBaoId));
|
| | | out.print("success");
|
| | | } catch (TaoBaoWeiQuanException e) {
|
| | | e.printStackTrace();
|
| | | out.print(e.getMessage());
|
| | | } catch (Exception e) {
|
| | | out.print(e.getMessage());
|
| | | }
|
| | | }
|
| | |
|
| | | }
|
| | |
| | |
|
| | | /**
|
| | | *
|
| | | * @Title: demoJobHandler
|
| | | * @Description: 更新小程序动态商品
|
| | | * @param param
|
| | | * @return
|
| | | * @throws Exception |
| | | * ReturnT<String> 返回类型
|
| | | * @throws
|
| | | * @Title: demoJobHandler @Description: 更新小程序动态商品 @param
|
| | | * param @return @throws Exception ReturnT<String> 返回类型 @throws
|
| | | */
|
| | | @XxlJob("dynamic-updateWXMPDynamicInfo")
|
| | | public ReturnT<String> updateWXMPDynamicInfoHandler(String param) throws Exception {
|
| | |
| | | }
|
| | |
|
| | | /**
|
| | | * 添加内优惠相关商品
|
| | | * @Title: addJDNYHInfo
|
| | | * @Description: |
| | | * void 返回类型
|
| | | * @throws
|
| | | * 添加内优惠相关商品 @Title: addJDNYHInfo @Description: void 返回类型 @throws
|
| | | */
|
| | | private void addJDNYHInfo() throws Exception {
|
| | |
|
| | |
| | | }
|
| | | }
|
| | |
|
| | | |
| | | /**
|
| | | * 自动生成发圈
|
| | | * 早上6,7,15,16,21,22,23点更新1次
|
| | | * 动态发圈
|
| | | * |
| | | * @param param
|
| | | * @return
|
| | | * @throws Exception
|
| | | */
|
| | | @Scheduled(cron = "0 0 6,7,15,16,21,22,23 * * ? ")
|
| | | public void insetEvaluate() {
|
| | | if (!Constant.IS_TASK) {
|
| | | return;
|
| | | }
|
| | |
|
| | | // @Scheduled(cron = "0 0 6,7,15,16,21,22,23 * * ? ")
|
| | | @XxlJob("dynamic-insertEvaluate")
|
| | | public ReturnT<String> insertEvaluate(String param) throws Exception {
|
| | | try {
|
| | | goodsEvaluateService.addGoodsEvaluateByDaTaoKe();
|
| | | } catch (Exception e) {
|
| | |
| | | e1.printStackTrace();
|
| | | }
|
| | | }
|
| | | return ReturnT.SUCCESS;
|
| | | }
|
| | |
|
| | | }
|