first commit

This commit is contained in:
lijiazhuo
2025-09-25 16:22:02 +08:00
commit df75f53364
45 changed files with 5245 additions and 0 deletions

View File

@ -0,0 +1,52 @@
package com.example.sso.controller;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.example.sso.util.QiWeiUtil;
public class TongBuController {
public static void main(String[] args) {
String token = QiWeiUtil.tokenlist();
JSONObject jsonObject = JSON.parseObject(token);
String accessToken = jsonObject.getString("access_token");
String list = QiWeiUtil.list(accessToken, "123");
JSONObject jsonObject1 = JSON.parseObject(list);
String jsonString = jsonObject1.toJSONString();
System.out.println(jsonString);
/* String tokencreat = QiWeiUtil.tokencreat();
JSONObject jsonObject2 = JSON.parseObject(tokencreat);
String string = jsonObject2.getString("access_token");
String creat = QiWeiUtil.creat(jsonString, string);
String name = jsonObject1.getString("name");
JSONArray user = new JSONArray();
JSONArray party = new JSONArray();
user.add("测试用户");
party.add(23);
JSONObject jsonObject3 = new JSONObject();
jsonObject3.put("user",user);
jsonObject3.put("party",party);
String jsonObject3JSONString = jsonObject3.toJSONString();
String yaoqing = QiWeiUtil.yaoqing(jsonObject3JSONString, string);
JSONObject jsonObject4 = new JSONObject();
jsonObject4.put("userid","130283199705306054");
jsonObject4.put("name","丫丫");
String jsonString1 = jsonObject4.toJSONString();
String updata = QiWeiUtil.updata(jsonString1, string);
String delete = QiWeiUtil.delete(string, "130283199705306054");*/
// System.out.println(delete);
}
}