深圳人社虚假定位

深圳技工、职工院校实习打卡 虚拟定位 深圳人社

  1. // ==UserScript==
  2. // @name 深圳人社虚假定位
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.2
  5. // @description 深圳技工、职工院校实习打卡 虚拟定位 深圳人社
  6. // @author Orange add
  7. // @match https://hrsspub.sz.gov.cn/jgxxfw/yidong/student/kq/xskq.html
  8. // @icon https://www.google.com/s2/favicons?domain=sz.gov.cn
  9. // @license MIT
  10. // @grant unsafeWindow
  11. // @grant GM_addStyle
  12. // @grant GM_deleteValue
  13. // @grant GM_listValues
  14. // @grant GM_addValueChangeListener
  15. // @grant GM_removeValueChangeListener
  16. // @grant GM_setValue
  17. // @grant GM_getValue
  18. // @grant GM_log
  19. // @grant GM_getResourceText
  20. // @grant GM_getResourceURL
  21. // @grant GM_registerMenuCommand
  22. // @grant GM_unregisterMenuCommand
  23. // @grant GM_openInTab
  24. // @grant GM_xmlhttpRequest
  25. // @grant GM_download
  26. // @grant GM_getTab
  27. // @grant GM_saveTab
  28. // @grant GM_getTabs
  29. // @grant GM_notification
  30. // @grant GM_setClipboard
  31. // @grant GM_info
  32.  
  33. // ==/UserScript==
  34. unsafeWindow.GM_setValue = GM_setValue;
  35. unsafeWindow.GM_getValue = GM_getValue;
  36. unsafeWindow.GM_addStyle = GM_addStyle;
  37. unsafeWindow.GM_deleteValue = GM_deleteValue;
  38. unsafeWindow.GM_listValues = GM_listValues;
  39. unsafeWindow.GM_addValueChangeListener = GM_addValueChangeListener;
  40. unsafeWindow.GM_removeValueChangeListener = GM_removeValueChangeListener;
  41. unsafeWindow.GM_log = GM_log;
  42. unsafeWindow.GM_getResourceText = GM_getResourceText;
  43. unsafeWindow.GM_getResourceURL = GM_getResourceURL;
  44. unsafeWindow.GM_registerMenuCommand = GM_registerMenuCommand;
  45. unsafeWindow.GM_unregisterMenuCommand = GM_unregisterMenuCommand;
  46. unsafeWindow.GM_openInTab = GM_openInTab;
  47. unsafeWindow.GM_xmlhttpRequest = GM_xmlhttpRequest;
  48. unsafeWindow.GM_download = GM_download;
  49. unsafeWindow.GM_getTab = GM_getTab;
  50. unsafeWindow.GM_saveTab = GM_saveTab;
  51. unsafeWindow.GM_getTabs = GM_getTabs;
  52. unsafeWindow.GM_notification = GM_notification;
  53. unsafeWindow.GM_setClipboard = GM_setClipboard;
  54. unsafeWindow.GM_info = GM_info;
  55. (function() {
  56. 'use strict';
  57. unsafeWindow.submit = function(){
  58. containCircle = kqddCircles[0];
  59. var obj = {};
  60. obj.cnz022 = sxid;
  61. obj.cnz058 = xssxglid;
  62. obj.cne640 = containCircle.center.lat;
  63. obj.cne641 = containCircle.center.lng;
  64. obj.cne642 = containCircle.title;
  65. if(!flag){
  66. return;
  67. }
  68. flag = false;
  69. $.ajax({
  70. url:g_domain.baseRequest+'/ydfw/student/addKqjl',
  71. data:{
  72. xskqjlxxDTO:JSON.stringify(obj)
  73. },
  74. success:function (text) {
  75. flag = true;
  76. var res = JSON.parse(text);
  77. if(res.status==200){
  78. alert('虚拟定位打卡成功');
  79. window.history.back(-1);
  80. }else if(res.status==401){
  81. window.location.href='/jgxxfw/yidong/login.html';
  82. }else{
  83. alert(res.message);
  84. }
  85. },
  86. error:function (text) {
  87. flag = true;
  88. }
  89. });
  90. }
  91. unsafeWindow.dingwei = function(){
  92. getLocation(function (data) {
  93. parseLocation(data.lat,data.lng,function (result) {
  94. var latLng = kqddCircles[0].center;
  95. setCenter(latLng);
  96. mark(map,latLng);
  97. console.log(latLng);
  98. for (var i =0;i<kqddCircles.length;i++){
  99. if(isContain(kqddCircles[i],latLng.lat,latLng.lng)){
  100. $('#site').html(kqddCircles[i].title);
  101. containCircle = kqddCircles[i];
  102. if(!containCircle){
  103. dingwei();
  104. } else {
  105. return;
  106. }
  107. }
  108. }
  109. });
  110. });//定位
  111. }
  112. })();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址