From 4e5dc43480d0ba45bdc13837d570840426600485 Mon Sep 17 00:00:00 2001
From: liujie <1793218484@qq.com>
Date: 星期一, 28 七月 2025 11:34:17 +0800
Subject: [PATCH] 用户端修改 推广活动

---
 UserQYTTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/service/impl/UserInfoServiceImpl.java |   24 ++++--------------------
 1 files changed, 4 insertions(+), 20 deletions(-)

diff --git a/UserQYTTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/service/impl/UserInfoServiceImpl.java b/UserQYTTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/service/impl/UserInfoServiceImpl.java
index 885a57d..37042ea 100644
--- a/UserQYTTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/service/impl/UserInfoServiceImpl.java
+++ b/UserQYTTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/service/impl/UserInfoServiceImpl.java
@@ -128,8 +128,7 @@
     private PayMoneyUtil payMoneyUtil;
 
 
-    @Autowired
-    private TDriverPromotionActivityService driverPromotionActivityService;
+
 
     @Value("${callbackPath}")
     private String callbackPath;
@@ -227,7 +226,7 @@
      * @return
      */
     @Override
-    public synchronized ResultUtil<LoginWarpper> captchaLogin(String phone, String code, String registIp, String registAreaCode,String loginType,Integer driverId) throws Exception {
+    public synchronized ResultUtil<LoginWarpper> captchaLogin(String phone, String code, String registIp, String registAreaCode,String loginType) throws Exception {
         UserInfo userInfo = userInfoMapper.queryByPhone(phone);
         String nickName = null;
         if (null == userInfo) {
@@ -275,21 +274,6 @@
             }else {
                 userInfo.setCompanyId(1);
             }
-
-
-
-
-
-            // 是否需要绑定司机
-            TDriverPromotionActivity tDriverPromotionActivity = driverPromotionActivityService.selectOne(new EntityWrapper<TDriverPromotionActivity>().eq("districtCode", registAreaCode).ge("startTime", new Date()).lt("endTime", new Date()).last(" limit 1"));
-            if(tDriverPromotionActivity!=null){
-                Integer bindingDays = tDriverPromotionActivity.getBindingDays();
-                // 当前时间+绑定天数
-                Date endTime = DateUtils.addDays(new Date(), bindingDays);
-                userInfo.setBindDriverId(driverId);
-                userInfo.setBindExpireDate(endTime);
-            }
-
 
 
 
@@ -403,7 +387,7 @@
     }
     @Override
     public synchronized ResultUtil<LoginWarpper> captchaLogin(String phone, String code, Integer uid, Integer type, Integer userType,String loginType) throws Exception {
-        ResultUtil<LoginWarpper> resultUtil = this.captchaLogin(phone, code, null, null,loginType,null);
+        ResultUtil<LoginWarpper> resultUtil = this.captchaLogin(phone, code, null, null,loginType);
         if(resultUtil.getCode() == 200 && null != uid){
             if(type == 2){//司机分享
                 Driver driver = driverMapper.selectById(uid);
@@ -1250,7 +1234,7 @@
             if(null == userInfo){
                 return ResultUtil.error("获取用户信息失败");
             }
-            return this.captchaLogin(userInfo.get("phone"), "1234", null, registAreaCode, loginType,null);
+            return this.captchaLogin(userInfo.get("phone"), "1234", null, registAreaCode, loginType);
         }else{
             return ResultUtil.error(jsonObject.getString("msg"));
         }

--
Gitblit v1.7.1