Browse Source

remove HPHPSESSID from fcode and bonus

stanley-king 7 years atrás
parent
commit
8866f1656f

+ 3 - 4
mobile/control/fcode.php

@@ -92,10 +92,9 @@ class fcodeControl extends mobileControl
     {
         $common_id = intval($_GET['common_id']);
         $batch_code = $_GET['batch_code'];
-        $sid = $_SESSION['MPHPSESSID'];
 
         if($common_id <= 0 || empty($batch_code)) {
-            $url = BASE_SITE_URL . "/mobile/index.php?act=fcode&op=index&common_id={$common_id}&batch_code={$batch_code}&HPHPSESSID={$sid}";
+            $url = BASE_SITE_URL . "/mobile/index.php?act=fcode&op=index&common_id={$common_id}&batch_code={$batch_code}";
             return self::outsuccess(array('url' => $url));
         }
 
@@ -106,12 +105,12 @@ class fcodeControl extends mobileControl
         {
             $fcode = $oper->grab();
             if($fcode == false) {
-                $url = BASE_SITE_URL . "/mobile/index.php?act=fcode&op=index&common_id={$common_id}&batch_code={$batch_code}&HPHPSESSID={$sid}&status=-1";
+                $url = BASE_SITE_URL . "/mobile/index.php?act=fcode&op=index&common_id={$common_id}&batch_code={$batch_code}&status=-1";
                 return self::outsuccess(array('url' => $url));
             }
         }
 
-        $url = BASE_SITE_URL . "/mobile/index.php?act=fcode&op=index&common_id={$common_id}&batch_code={$batch_code}&HPHPSESSID={$sid}";
+        $url = BASE_SITE_URL . "/mobile/index.php?act=fcode&op=index&common_id={$common_id}&batch_code={$batch_code}";
         return self::outsuccess(array('url' => $url));
     }
 

+ 1 - 1
mobile/templates/default/bonus/open.php

@@ -54,7 +54,7 @@
                 $('#coin').addClass('gold_coin');
                var grab_url=$('#grab_url').val();
                 setTimeout(function(){
-                     window.location.href=grab_url + '&HPHPSESSID=' + sId;
+                     window.location.href=grab_url;
                 },500)
             })
         });

+ 1 - 1
mobile/templates/default/fcode/bind.php

@@ -120,7 +120,7 @@
             {
                 if (data.code == 200)
                 {
-                    var url = "/mobile/index.php?act=fcode&op=index&common_id=" + commonid + "&batch_code=" + batch_code + "&HPHPSESSID=" + sid +"&mobile=" + mobile;
+                    var url = "/mobile/index.php?act=fcode&op=index&common_id=" + commonid + "&batch_code=" + batch_code + "&mobile=" + mobile;
                     location.replace(url);
                 }
                 else {