root 5 years ago
parent
commit
52e7925cac
1 changed files with 6 additions and 0 deletions
  1. 6 0
      app/Http/Controllers/TutorialController.php

+ 6 - 0
app/Http/Controllers/TutorialController.php

@@ -61,6 +61,12 @@ class TutorialController extends Controller
                 ]
             ]
         ];
+        // fuck support shadowrocket urlsafeb64 subscribe
+        $response['data']['safe_area_var']['b64_subscribe_url'] = str_replace(
+            array('+','/','='),array('-','_',''),
+            base64_encode($response['data']['safe_area_var']['subscribe_url'])
+        );
+        // end
         return response($response);
     }
 }