|
|
@@ -13,9 +13,9 @@ class TestService extends Service
|
|
|
public function testdwy($data){
|
|
|
if(empty($data['url']) || empty($data['post']) || empty($data['header'])) return [false,'API请求参数不能为空'];
|
|
|
$url = $data['url'];
|
|
|
- $oldUrl = config('ip.zslf');
|
|
|
- $newUrl = config('ip.zslfip');
|
|
|
- $url = str_replace($oldUrl, $newUrl, $url);
|
|
|
+// $oldUrl = config('ip.zslf');
|
|
|
+// $newUrl = config('ip.zslfip');
|
|
|
+// $url = str_replace($oldUrl, $newUrl, $url);
|
|
|
|
|
|
$post = $data['post'];
|
|
|
$header = $data['header'];
|
|
|
@@ -34,9 +34,9 @@ class TestService extends Service
|
|
|
if(empty($data['url']) || empty($data['header'])) return [false,'API请求参数不能为空'];
|
|
|
|
|
|
$url = $data['url'];
|
|
|
- $oldUrl = config('ip.zslf');
|
|
|
- $newUrl = config('ip.zslfip');
|
|
|
- $url = str_replace($oldUrl, $newUrl, $url);
|
|
|
+// $oldUrl = config('ip.zslf');
|
|
|
+// $newUrl = config('ip.zslfip');
|
|
|
+// $url = str_replace($oldUrl, $newUrl, $url);
|
|
|
|
|
|
$header = $data['header'];
|
|
|
|
|
|
@@ -50,9 +50,9 @@ class TestService extends Service
|
|
|
if(empty($data['url']) || empty($data['post']) || empty($data['header'])) return [false,'API请求参数不能为空'];
|
|
|
|
|
|
$url = $data['url'];
|
|
|
- $oldUrl = config('ip.zslf');
|
|
|
- $newUrl = config('ip.zslfip');
|
|
|
- $url = str_replace($oldUrl, $newUrl, $url);
|
|
|
+// $oldUrl = config('ip.zslf');
|
|
|
+// $newUrl = config('ip.zslfip');
|
|
|
+// $url = str_replace($oldUrl, $newUrl, $url);
|
|
|
|
|
|
$post = $data['post'];
|
|
|
$header = $data['header'];
|