CaseController.php 989B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: guanxl
  5. * Date: 2018/8/4
  6. * Time: 10:58
  7. */
  8. namespace App\Http\Controllers;
  9. use App\Services\CookieService;
  10. use Illuminate\Http\Request;
  11. use Illuminate\Support\Facades\Log;
  12. use Laravel\Lumen\Routing\Controller as BaseController;
  13. class CaseController extends BaseController{
  14. public function e18Kingdee(Request $request){
  15. $getData = $_GET;
  16. unset($getData["_url_"]);
  17. //CookieService::unsetBsAuth();
  18. //CookieService::unsetOauth();
  19. $url = env("WEB_URL")."?activity_id=1232&".http_build_query($getData);
  20. Log::info($url);
  21. header("location:".$url);
  22. }
  23. public function e18Essence(Request $request){
  24. $getData = $_GET;
  25. unset($getData["_url_"]);
  26. CookieService::unsetBsAuth();
  27. CookieService::unsetOauth();
  28. $url = env("WEB_URL")."?activity_id=1559&".http_build_query($getData);
  29. Log::info($url);
  30. header("location:".$url);
  31. }
  32. }