|
|
|
@ -3,10 +3,13 @@ package cn.chjyj.szwh; |
|
|
|
|
|
|
|
import cn.chjyj.szwh.utils.RedisKeys; |
|
|
|
import cn.chjyj.szwh.utils.SignUtils; |
|
|
|
import com.alibaba.fastjson.JSON; |
|
|
|
import com.alibaba.fastjson.JSONObject; |
|
|
|
import com.auth0.jwt.JWT; |
|
|
|
import com.auth0.jwt.interfaces.DecodedJWT; |
|
|
|
|
|
|
|
import org.junit.Test; |
|
|
|
import org.omg.CORBA.PUBLIC_MEMBER; |
|
|
|
import org.springframework.boot.test.context.SpringBootTest; |
|
|
|
|
|
|
|
|
|
|
|
@ -67,4 +70,14 @@ public class JwtRsaTokenTests { |
|
|
|
String ss = RedisKeys.getSysConfigKey("*"); |
|
|
|
System.out.println(ss); |
|
|
|
} |
|
|
|
|
|
|
|
@Test |
|
|
|
public void jsontest(){ |
|
|
|
String stjson ="{\"data\":{\"bankAccountName\":\"深圳亿起融网络科技有限公司\",\"bankCellPhone\":\"13811155627\",\"address\":\"深圳亿起融网络科技有限公司\",\"registerTime\":\"2022-04-26 16:49:17\",\"bankType\":\"农业银行深圳滨海支行\",\"doorHeadPhoto\":\"https://entrust.cncbox.com:51319/userself/26/16509625907000881.png\",\"uscc\":\"91440300326621149M\",\"bankCardType\":\"借记卡\",\"bankName\":\"农业银行深圳滨海支行\",\"industry\":\"1\",\"authTime\":\"2022-05-09 13:30:40\",\"legalsType\":\"身份证\",\"userId\":\"16509629569764508\",\"bankAddress\":\"北京市,北京市,东城区\",\"legalsName\":\"深圳亿起融网络科技有限公司\",\"legalsIdnum\":\"41003600040008637\",\"name\":\"深圳亿起融网络科技有限公司\",\"publicAccount\":\"41003600040008637\",\"userType\":\"机构\",\"state\":1,\"authType\":\"机构\",\"islicode\":\"899998-000000001038-3\",\"certIdnum\":\"340822198712191236\"},\"resultCode\":\"00000000\",\"resultMsg\":\"SUCCESS\"}"; |
|
|
|
JSONObject jsonObject = JSONObject.parseObject(stjson); |
|
|
|
JSONObject data = jsonObject.getJSONObject("data"); |
|
|
|
System.out.println(data); |
|
|
|
String name = data.getString("name"); |
|
|
|
System.out.println(name); |
|
|
|
} |
|
|
|
} |
|
|
|
|