1
0
mirror of synced 2025-12-19 23:08:13 +08:00

🐛 #2714 【小程序】修复即时配送相关接口报平台签名验证错误的问题

This commit is contained in:
Xianhui Guo
2022-08-02 13:37:51 +08:00
committed by GitHub
parent 873a0218e7
commit 4e06dd6039
3 changed files with 26 additions and 1 deletions

View File

@@ -0,0 +1,20 @@
package cn.binarywang.wx.miniapp.test;
import cn.binarywang.wx.miniapp.bean.delivery.AddOrderRequest;
import me.chanjar.weixin.common.util.json.WxGsonBuilder;
import org.testng.annotations.Test;
public class AddOrderJsonTest {
/**
* 验证转化Json时是否有deliverySign
*/
@Test
public void test(){
AddOrderRequest request = new AddOrderRequest();
request.setShopId("1");
request.setAppSecret("2");
request.getDeliverySign();
System.out.printf(WxGsonBuilder.create().toJson(request));
}
}