wt123 1 год назад
Родитель
Сommit
af112cc8c0

+ 25 - 1
docs/views/apiList/orderInterface/orderPush.md

@@ -39,7 +39,20 @@
 |sendLat     |特殊必填  |string | 发件人经度,火星坐标系,最长不超过40个字符    |
 |sendCityCode     |特殊必填  |string | 发件人城市code,最长不超过30个字符    |
 |daySeq     |是  |string | 流水号,最长不超过5个字符    |
+|isAgain     |否  |int | 再次推送    |
+|goods     |否  |array | 商品明细,见下方    |
+##### goods 参数说明
 
+|参数名|必选|类型|说明|
+|:-----  |:-----|:----- |----- |
+|foodId |是 | int   | 食物id  |
+|foodName |是  |string | 食物    |
+|price     |是  |string | 单价 元   |
+|quantity  |是  |string | 数量 |
+|unit     |是  |string | 单位    |
+|spec     |是  |string | 规格  |
+|weight     |是  |string | 重量   |
+|weight     |是  |string | 图片  |
 ##### 请求示例 
 
 ``` 
@@ -62,7 +75,18 @@
     "receiverLat": "120.67025",
 	"receiverCityCode": "010",
 	"shopCode": "2104161111222174",
-	"daySeq": "2"
+	"daySeq": "2",
+	"isAgain": 0,
+	"goods": [   {
+                "foodId": 7,
+                "foodName": "面包",
+                "price": "7。9",
+                "quantity": 1,
+                "unit": 杯,
+                "spec": "大杯",
+				"weight": 1,
+				"img": "http://aa.com",
+            }....],
 }
 ```
 

+ 1 - 0
docs/views/apiList/orderInterface/orderValuation.md

@@ -40,6 +40,7 @@
 |weight     |是  |int | 物品重量,单位为kg(范围 1~50kg)   |
 |platformType     |是  |int | 0-其他 1-美团 2-饿了么 3-饿百零售 5-美团闪购 6-京东到家    |
 |daySeq     |是  |int | 流水号。指定店铺的每日订单顺序号,比如是今日第2单,那就传2    |
+|exceptTime     |否  |long | 期望送达时间 时间戳 到秒  |
 |remark     |否  |string | 订单备注,最长不超过200个字符    |
 
 ##### 请求示例 

+ 5 - 1
docs/views/appendix/deliveryPlatform.md

@@ -11,4 +11,8 @@
 |9 |达达优质     |
 |10 |快服务     |
 |13 |美团跑腿     |
-|15 |蜂鸟跑腿     |
+|15 |蜂鸟跑腿     |
+|18 |裹小递     |
+|20 |达达急送    |
+|22 |达达四轮     |
+|24 |侠刻送    |

+ 2 - 3
docs/views/interfaceRules/sign.md

@@ -3,7 +3,7 @@
 为了防止API调用过程中数据被恶意篡改,调用任何一个API都需要按照规则进行签名,开放平台服务端会根据同一规则对签名进行验证,签名不合法的请求将会被拒绝。
 
 ##### **规则**
-1. 将参数(sign除外)按照参数名的字典顺序排序
+1. 将参数(sign,空值,空字符串除外)按照参数名的字典顺序排序
 2. 将参数使用键值对的格式(即key1=value1&key2=value2...)拼接成字符串A
 3. 在字符串A最后拼接上appSecret得到最终的待签名字符串B
 4. 对待签名字符串B进行MD5运算,得到字符串C
@@ -16,7 +16,6 @@ appId=100010
 timeStamp=1651215937000
 业务参数:
 shopName=好又多超市
-empty=
 
 参数拼接成字符串A:
 appId=100010&shopName=好又多超市&timeStamp=1651215937000
@@ -41,7 +40,7 @@ private static String getSignValue(Map<String, Object> paramMap, String appSecre
         for (String key : keys) {
             Object value = paramMap.get(key);
             // 排除值为null的情况
-            if (value != null) {
+              if (value == null || StringUtils.isEmpty(value.toString())) {
                 param.append(URLEncoder.encode(key, "UTF-8")).append("=").append(value).append("&");
             }
         }