| | |
| | | import java.util.HashMap; |
| | | import java.util.Map; |
| | | |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.linghu.utils.OpenCryptUtil; |
| | | import org.springframework.beans.factory.annotation.Value; |
| | | import org.springframework.http.ResponseEntity; |
| | |
| | | String decrypt = openCryptUtil.decrypt(token); |
| | | System.out.println(decrypt); |
| | | System.out.println("----------------"); |
| | | JSONObject jsonObject = JSONObject.parseObject(decrypt); |
| | | |
| | | |
| | | // 返回用户信息 |
| | | return ResponseEntity.ok(decrypt); |
| | | return ResponseEntity.ok(jsonObject.get("name")); |
| | | } |
| | | |
| | | @GetMapping("/getToken") |