From 954dd6d15ad6a32098f252e7db52459231566b2b Mon Sep 17 00:00:00 2001
From: Pu Zhibing <393733352@qq.com>
Date: 星期三, 10 九月 2025 17:28:24 +0800
Subject: [PATCH] 提交代码

---
 driver/guns-admin/src/main/java/com/supersavedriving/driver/modular/system/service/impl/DriverServiceImpl.java |   16 ++++++++++++----
 1 files changed, 12 insertions(+), 4 deletions(-)

diff --git a/driver/guns-admin/src/main/java/com/supersavedriving/driver/modular/system/service/impl/DriverServiceImpl.java b/driver/guns-admin/src/main/java/com/supersavedriving/driver/modular/system/service/impl/DriverServiceImpl.java
index fac41bc..b1ef427 100644
--- a/driver/guns-admin/src/main/java/com/supersavedriving/driver/modular/system/service/impl/DriverServiceImpl.java
+++ b/driver/guns-admin/src/main/java/com/supersavedriving/driver/modular/system/service/impl/DriverServiceImpl.java
@@ -27,6 +27,7 @@
 import com.supersavedriving.driver.modular.system.util.weChat.WeChatUtil;
 import com.supersavedriving.driver.modular.system.util.weChat.model.Code2Session;
 import com.supersavedriving.driver.modular.system.warpper.*;
+import lombok.extern.slf4j.Slf4j;
 import org.apache.commons.lang.StringUtils;
 import org.apache.shiro.authc.SimpleAuthenticationInfo;
 import org.apache.shiro.authc.UsernamePasswordToken;
@@ -67,6 +68,7 @@
 * @author pzb
 * @Date 2023/2/8 18:52
 */
+@Slf4j
 @Service
 public class DriverServiceImpl extends ServiceImpl<DriverMapper, Driver> implements IDriverService {
 
@@ -223,8 +225,8 @@
         String pictureName = "driver_" + driverId + ".png";
         File file = FileUtil.writeFromStream(release, new File(filePath + pictureName));
         HttpRequest post = HttpUtil.createPost(adminUrl + "/upload/image");
-        HttpRequest form = post.form("file", file);
-        HttpResponse execute = form.execute();
+        post.form("file", file);
+        HttpResponse execute = post.execute();
         int status = execute.getStatus();
         if(200 != status){
             throw new RuntimeException("上传图片异常");
@@ -237,8 +239,8 @@
         String pictureName = "driver_" + driverId + ".png";
         File file = FileUtil.writeFromStream(release, new File(filePath + pictureName));
         HttpRequest post = HttpUtil.createPost(adminUrl + "/upload/image");
-        HttpRequest form = post.form("file", file);
-        HttpResponse execute = form.execute();
+        post.form("file", file);
+        HttpResponse execute = post.execute();
         int status = execute.getStatus();
         if(200 != status){
             throw new RuntimeException("上传图片异常");
@@ -366,6 +368,11 @@
         return ResultUtil.success(tokenWarpper);
     }
 
+
+    public static void main(String[] args) {
+        String s = ShiroKit.md5(MD5AndKL.MD5("123456"), "i#sm4");
+        System.out.println(s);
+    }
 
     /**
      * 司机密码登录
@@ -603,6 +610,7 @@
         Double lat = driverPositionWarpper.getLat();
         Integer driverId = driverPositionWarpper.getDriverId();
         Integer orderId = driverPositionWarpper.getOrderId();
+        log.info("存储地理空间:{}", driverPositionWarpper);
         redisUtil.setStrValue("daijia:DRIVER" + driverId, lon + "," + lat, 30);
         Query query = Query.query(Criteria.where("driverId").is(driverId));
         Location old = this.mongoTemplate.findOne(query, Location.class);

--
Gitblit v1.7.1