Created
October 19, 2022 14:48
-
-
Save fr33m44/c4225b958a3c517fe09d6cd82eb71c15 to your computer and use it in GitHub Desktop.
2017公司打卡脚本
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /* | |
| version=12&userid=huangjinqiu&password=123456&service=INSERT_WDDK&user_login_id=huangjinqiu&imei=862630035628511&q_WD=29.597515&q_JD=106.499532&q_YHID=huangjinqiu&q_YHMC=%E9%BB%84%E9%94%A6%E6%B9%AB&q_DKDD=%E9%87%8D%E5%BA%86%E5%B8%82%E6%B8%9D%E5%8C%97%E5%8C%BA%E6%97%97%E5%B1%B1%E8%B7%AF250-40%E5%8F%B7&version=1 | |
| version=12&userid=ligang&password=123456&service=SYSTEM_USER_LOGIN&user_login_id=ligang&imei=862630035628511&user_login_id=ligang&password=123456&version=1 | |
| 106.499533|29.597348 | |
| 106.499532|29.597515 | |
| 106.49959 |29.597535 | |
| 106.49961 |29.597565 | |
| */ | |
| if(isset($_POST['daka']) && $_POST['daka'] == '1'){ | |
| $userid = $_POST['userid']; | |
| $ch = curl_init(); | |
| $url= 'http://erp.szboanda.com:8889/erp/invoke'; | |
| $options=array( | |
| CURLOPT_URL=>$url, | |
| CURLOPT_RETURNTRANSFER=>true, | |
| CURLOPT_POST=>true, | |
| CURLOPT_POSTFIELDS=>'version=12&userid='.$userid.'&password=12345678a&service=INSERT_WDDK&user_login_id='.$userid.'&imei=862630035628511&q_WD=29.597455&q_JD=106.499512&q_YHID='.$userid.'&q_YHMC=%E9%BB%84%E9%94%A6%E6%B9%AB&q_DKDD=%E9%87%8D%E5%BA%86%E5%B8%82%E6%B8%9D%E5%8C%97%E5%8C%BA%E6%97%97%E5%B1%B1%E8%B7%AF250-40%E5%8F%B7&version=1', | |
| CURLOPT_CONNECTTIMEOUT=>false | |
| ); | |
| curl_setopt_array($ch,$options); | |
| $data = curl_exec($ch); | |
| $data = preg_replace('/[\n\r]/','',$data); | |
| echo '返回信息:'.$data;die(); | |
| } | |
| ?> | |
| <!DOCTYPE HTML> | |
| <html> | |
| <head> | |
| <link rel="stylesheet" href="http://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.css"> | |
| <script src="http://code.jquery.com/jquery-1.8.3.min.js"></script> | |
| <script src="http://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.js"></script> | |
| <script> | |
| $(document).ready(function(){ | |
| $(".dakabtn").click(function(){ | |
| $.ajax({ | |
| url: 'daka.php', | |
| type: 'POST', | |
| data:'daka=1&userid='+$(this).attr('userid'), | |
| success : function(data){ | |
| alert(data); | |
| }, | |
| error: function(){ | |
| alert(data); | |
| } | |
| }); | |
| }); | |
| }); | |
| </script> | |
| <style> | |
| #btndiv{ | |
| text-align:center; | |
| margin-top:20%; | |
| } | |
| </style> | |
| <meta charset="UTF-8"> | |
| <title>DAKA</title> | |
| </head> | |
| <body> | |
| <div id="btndiv"> | |
| <input class="dakabtn" name="dakabtn" userid="huangjinqiu" type="button" value="HJQ DAKA" data-inline="true" /> | |
| <input class="dakabtn" name="dakabtn" userid="ligang" type="button" value="LG DAKA" data-inline="true" /> | |
| <input class="dakabtn" name="dakabtn" userid="caochong" type="button" value="CC DAKA" data-inline="true" /> | |
| <div> | |
| </body> | |
| </html> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment