File tree Expand file tree Collapse file tree
src/main/java/com/pingplusplus Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -19,6 +19,10 @@ Java SDK 要求 JDK 1.6 及以上版本
1919
2020## 更新日志
2121
22+ ### 2.0.1
23+ * 更改:<br >
24+ 修改 wx credential 里的 timeStamp 类型为字符串,防止变成科学计数法
25+
2226### 2.0.0
2327* 更改:<br >
2428添加新渠道支持:百付宝、百付宝WAP、微信公众平台
Original file line number Diff line number Diff line change 11apply plugin : ' java'
22apply plugin : ' maven'
33sourceCompatibility = 1.5
4- version = ' 2.0.0 '
4+ version = ' 2.0.1 '
55
66repositories {
77mavenCentral()
Original file line number Diff line number Diff line change 33public abstract class Pingpp
44{
55 public static final String LIVE_API_BASE = "https://api.pingxx.com/" ;
6- public static final String VERSION = "2.0.0 " ;
6+ public static final String VERSION = "2.0.1 " ;
77 public static volatile String apiKey ;
88 public static volatile String apiVersion = "2015-01-01" ;
99
Original file line number Diff line number Diff line change @@ -202,8 +202,10 @@ public void setApp(Object app) {
202202
203203 public String getCredential () {
204204 Map <String , Object > credParams = new HashMap <String , Object >();
205- credParams .put ("object" , "credential" );
206- credParams .put (channel , credential .get (channel ));
205+ if (!credential .isEmpty ()) {
206+ credParams .put ("object" , "credential" );
207+ credParams .put (channel , credential .get (channel ));
208+ }
207209 return PRETTY_PRINT_GSON .toJson (credParams );
208210 }
209211
You can’t perform that action at this time.
0 commit comments