|
|
@@ -13,7 +13,7 @@ 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 = 'https://gzy.qingyaokeji.com/';
|
|
|
+ $oldUrl = config('ip.zslf');
|
|
|
$newUrl = config('ip.zslfip');
|
|
|
$url = str_replace($oldUrl, $newUrl, $url);
|
|
|
|
|
|
@@ -34,7 +34,7 @@ class TestService extends Service
|
|
|
if(empty($data['url']) || empty($data['header'])) return [false,'API请求参数不能为空'];
|
|
|
|
|
|
$url = $data['url'];
|
|
|
- $oldUrl = 'https://gzy.qingyaokeji.com/';
|
|
|
+ $oldUrl = config('ip.zslf');
|
|
|
$newUrl = config('ip.zslfip');
|
|
|
$url = str_replace($oldUrl, $newUrl, $url);
|
|
|
|
|
|
@@ -50,7 +50,7 @@ class TestService extends Service
|
|
|
if(empty($data['url']) || empty($data['post']) || empty($data['header'])) return [false,'API请求参数不能为空'];
|
|
|
|
|
|
$url = $data['url'];
|
|
|
- $oldUrl = 'https://gzy.qingyaokeji.com/';
|
|
|
+ $oldUrl = config('ip.zslf');
|
|
|
$newUrl = config('ip.zslfip');
|
|
|
$url = str_replace($oldUrl, $newUrl, $url);
|
|
|
|