From 6901d54eeb093a4b94f0630ae88bda7936f16919 Mon Sep 17 00:00:00 2001
From: wang-hao-jie <1550036656@qq.com>
Date: 星期三, 05 一月 2022 09:30:09 +0800
Subject: [PATCH] 违章记录
---
xboot-modules/xboot-your/src/main/java/cn/exrick/xboot/your/controller/wx/IndexController.java | 20 +++++++++++---------
1 files changed, 11 insertions(+), 9 deletions(-)
diff --git a/xboot-modules/xboot-your/src/main/java/cn/exrick/xboot/your/controller/wx/IndexController.java b/xboot-modules/xboot-your/src/main/java/cn/exrick/xboot/your/controller/wx/IndexController.java
index 81c6e5c..778059a 100644
--- a/xboot-modules/xboot-your/src/main/java/cn/exrick/xboot/your/controller/wx/IndexController.java
+++ b/xboot-modules/xboot-your/src/main/java/cn/exrick/xboot/your/controller/wx/IndexController.java
@@ -10,6 +10,7 @@
import cn.exrick.xboot.your.util.HttpUtil;
import cn.hutool.core.date.DateUtil;
import cn.hutool.core.util.StrUtil;
+import cn.hutool.json.JSONArray;
import cn.hutool.json.JSONObject;
import cn.hutool.json.JSONUtil;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
@@ -57,7 +58,7 @@
//2.寰俊鐧婚檰
- @RequestMapping("/login")
+ @RequestMapping(value = "/login", method = RequestMethod.POST)
@ApiOperation(value = "寰俊鐧婚檰")
public Object doLogin(String code){
@@ -90,7 +91,7 @@
//3.寰俊缁戝畾闆跺敭璁稿彲璇�
//licence:闆跺敭璁稿彲璇佸彿
//openId锛氬井淇d
- @RequestMapping("/bindWx")
+ @RequestMapping(value = "/bindWx", method = RequestMethod.POST)
@ApiOperation(value = "寰俊缁戝畾闆跺敭璁稿彲璇�")
public Object bindWx(String licence,String openId){
QueryWrapper<Customer> wrapper = new QueryWrapper<>();
@@ -106,7 +107,7 @@
}
//4.鑾峰彇浠婃棩閰嶉�佽鍗�
- @RequestMapping("/getTodayOrder")
+ @RequestMapping(value = "/getTodayOrder", method = RequestMethod.POST)
@ApiOperation(value = "鑾峰彇浠婃棩閰嶉�佽鍗�")
public Object getTodayOrder(String customerId){
OrderTask orderTask = getOrder(customerId);
@@ -130,7 +131,7 @@
}
//5.鑾峰彇杞﹁締浣嶇疆
- @RequestMapping("/getCarInfo")
+ @RequestMapping(value = "/getCarInfo",method = RequestMethod.POST)
@ApiOperation(value = "鑾峰彇杞﹁締浣嶇疆")
public Object getCarInfo(String customerId){
QueryWrapper<OrderTask> wrapper2 = new QueryWrapper<OrderTask>();
@@ -145,7 +146,8 @@
String latestGps = haiKangPost.findLatestGps(carids);
JSONObject jsonObject = JSONUtil.parseObj(latestGps);
String data = jsonObject.getStr("data");
- JSONObject jsonObject2 = JSONUtil.parseObj(data);
+ JSONArray objects = JSONUtil.parseArray(data);
+ JSONObject jsonObject2 = objects.getJSONObject(0);
Integer lng = jsonObject2.getInt("longitude");
Integer lat = jsonObject2.getInt("latitude");
@@ -158,7 +160,7 @@
}
//6.鍔犳补鍔╁姏
- @RequestMapping("/likes")
+ @RequestMapping(value = "/likes", method = RequestMethod.POST)
@ApiOperation(value = "鍔犳补鍔╁姏")
public Object likes(String customerId){
OrderTask order = getOrder(customerId);
@@ -168,7 +170,7 @@
}
//7.鑾峰彇璁㈠崟鍒楄〃
- @RequestMapping("/getOrderList")
+ @RequestMapping(value = "/getOrderList", method = RequestMethod.POST)
@ApiOperation(value = "鑾峰彇璁㈠崟鍒楄〃")
public Object getOrderList(String customerId, String startTime, String endTime, PageVo page){
page.setSort("sendDate");
@@ -186,7 +188,7 @@
}
//8.鑾峰彇璁㈠崟璇︽儏鍒楄〃
- @RequestMapping("/getOrderDetail")
+ @RequestMapping(value = "/getOrderDetail", method = RequestMethod.POST)
@ApiOperation(value = "鑾峰彇璁㈠崟璇︽儏鍒楄〃")
public Object getOrderDetail(String orderId){
QueryWrapper<OrderDetail> wrapper = new QueryWrapper<>();
@@ -196,7 +198,7 @@
}
//9.璇勪环
- @RequestMapping("/remark")
+ @RequestMapping(value = "/remark", method = RequestMethod.POST)
@ApiOperation(value = "璇勪环")
public Object remark(int level,String orderId){
OrderTask byId = iOrderTaskService.getById(orderId);
--
Gitblit v1.9.1