map.js 696 B

12345678910111213141516171819202122232425262728
  1. import {requestInstance_Map_token, requestInstance_Service_token, requestPost} from "./index.js";
  2. export function getMapToken(){
  3. return requestInstance_Map_token({
  4. url:'/ToolShare/getToken',
  5. data:{
  6. "APPLY_KEY": "20230816178478",
  7. "CID": "b7d75267-3377-456a-9b99-4871d9c11589",
  8. "RID": "AH0026"
  9. }
  10. })
  11. }
  12. export function getServiceToken(name,password){
  13. debugger
  14. return requestInstance_Service_token({
  15. url:'/security/getToken',
  16. params:{
  17. "username": name,
  18. "key": password
  19. }
  20. })
  21. }
  22. export function getLegend(url){
  23. return requestInstance_Service_token({
  24. url
  25. })
  26. }