### 接口验证说明
* * * * *
1. 将参与验证参数(data下所有参数)进行字典序排序
2. 将排序后参数拼接成字符串
password=123456&username=张三三
3. 将协商好的key拼接到字符串末尾(注意顺序)
password=123456&username=张三三&key=aumal
4. 然后进行MD5加密,加密后字符串转换为大写
MD5(password=123456&username=张三三&key=c4ca4238a0b923820dcc509a6f75849b)
5. 将最终的字符串通过参数sign传递到服务器进行验证
sign:F6719AF03B64F0AF249F305C20B67009
6.加密key :联系接口提供方获取
7.接口传递参数 采用POST json格式 例如:
{
"data": {
"order_num": "1001",//订单号
"order_amount": "120.00",//支付金额
"goods_amount": "100.00",//总货值
"tax": "10.00",//总税费
"promotion": "10.00",//优惠金额
"logistics_money": "10.00",//运费
"buyer_name": "刘德华",//购买人姓名
"buyer_card": "41000000000000000",//购买人身份证号
"accept_name": "李四",//收货人
"accept_mobile": "1358888888",//收货人电话
"province": "河南省",//收货地址省
"city": "郑州市",//收货地址市
"area": "高新区",//收货地址区
"accept_address": "帝王大厦2002",//具体地址不包含省市区
"mark": "备注",
"order_time":"2020-05-02 14:32:12"//下单时间
"goods_list": [{
"sku": "9000001",//条码货号
"goods_name": "商品1",//商品名
"quantity": 1,//数量
"price": "50.00"//单价
}, {
"sku": "90000012",
"goods_name": "商品2",
"quantity": 2,
"price": "25.00"
}]
},
"sign": "C5FFF9309DDC0C633F8D8ACDCDD4EDA4"
}
* * * * *