forked from binarywang/WxJava
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
me.chanjar.weixin.common.error.WxErrorException: 错误代码:-99, 错误信息:平台签名验…
…证错误 binarywang#2714
- Loading branch information
Showing
3 changed files
with
26 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
weixin-java-miniapp/src/test/java/cn/binarywang/wx/miniapp/test/AddOrderJsonTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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)); | ||
} | ||
} |
30e6a14
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
感觉这个修补方式不太理想