| | |
| | | // String s = RandomUtil.randomNumbers(4); |
| | | // String s1 = "FZ" + time + s; |
| | | // System.err.println(s1); |
| | | // createUser(s1,"邱仕珍","00" |
| | | // ,"441622198609245260" |
| | | // ,"13682696011" |
| | | // ,"61485755117823"); |
| | | updateAccount("FZ17403857003793677","邱仕珍","13682696011" |
| | | ,"4367427200563236884"); |
| | | // createUser(s1,"周帅","00" |
| | | // ,"130682198203061982" |
| | | // ,"18132621790" |
| | | // ,"6221801210000822611"); |
| | | // updateAccount("FZ17403857003793677","邱仕珍","13682696011" |
| | | // ,"4367427200563236884"); |
| | | // updateAccount("test945622121","周帅","19983174515" |
| | | // ,"6228480469852935177"); |
| | | // balancePay("CZ09809217341", "FZ17343419268427877","0.01", ""); |
| | | // queryBalance("FZ17343419268427877"); |
| | | |
| | | // String decrypt = decrypt("z8Che/JwxrGj/oTOuAvU8HFN6vXL/OqeioV41ZuPV/xVQPt9vCHHc1R5LgAO51Hq5ilD9wqsminRvSiJj6Fs/Bfk8espZSOO2g1OE7FZyqcLB1w01MSWyxfQT8nc2GH/EfOKXCuaKBCeyW24OvW3ng=="); |
| | | // System.err.println(decrypt); |
| | | // balanceWithdraw("TX1000928371648172","0.01","FZ17343419268427877","https://xq.xqzhihui.com/api/user/client/app-user-withdraw/base/callbackA"); |
| | | queryUserList(); |
| | | queryUserList("441424198104061249"); |
| | | // queryBalanceList("FZ17427173417891435"); |
| | | // queryPayment("002212025032410341110750073154527547392"); |
| | | } |
| | | public static String queryUserList() |
| | | public static String queryUserList(String identifier) |
| | | throws Exception { |
| | | |
| | | JSONObject data = new JSONObject(); |
| | | // data.put("app_id", APP_ID); |
| | | data.put("app_id", "app_e7301b75-19f1-40e5-96ac-0fee847d4da0"); |
| | | data.put("member_type", "01"); |
| | | data.put("identifier", "441622198609245260"); |
| | | data.put("identifier", identifier); |
| | | data.put("page_index", "1"); |
| | | data.put("page_size", "10"); |
| | | JSONObject body = new JSONObject(); |
| | |
| | | System.err.println(decrypt); |
| | | JSONObject jsonObject = JSONObject.parseObject(decrypt); |
| | | System.err.println(jsonObject); |
| | | return "success"; |
| | | if (jsonObject!=null){ |
| | | return jsonObject.getJSONObject("data").getString("member_id"); |
| | | } |
| | | return null; |
| | | } |
| | | /** |
| | | * 创建用户 |
| | |
| | | |
| | | JSONObject data = new JSONObject(); |
| | | // data.put("app_id", APP_ID); |
| | | data.put("app_id", "app_e7301b75-19f1-40e5-96ac-0fee847d4da0"); |
| | | data.put("app_id", APP_ID); |
| | | data.put("member_id", memberId); |
| | | data.put("member_type", "01"); |
| | | JSONObject body = new JSONObject(); |
| | | // body.put("merId", MER_ID); |
| | | body.put("merId", "1120241105365033"); |
| | |
| | | System.err.println(jsonObject); |
| | | return "success"; |
| | | } |
| | | public static String queryBalanceList() |
| | | public static String queryBalanceList(String member_id) |
| | | throws Exception { |
| | | SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyyMMddHHmmss"); |
| | | Date date = new Date(); |
| | |
| | | data.put("end_date", format); |
| | | data.put("page_index", "01"); |
| | | data.put("page_size", "01"); |
| | | data.put("member_id", "FZ17343419268427877"); |
| | | data.put("member_id", member_id); |
| | | JSONObject body = new JSONObject(); |
| | | // body.put("merId", MER_ID); |
| | | body.put("merId", "1120241105365033"); |