|
@@ -8,9 +8,6 @@ namespace app\common\service;
|
|
|
|
|
|
|
|
|
use app\index\exception\ApiException;
|
|
|
-use GuzzleHttp\Client;
|
|
|
-use GuzzleHttp\Exception\RequestException;
|
|
|
-use think\Exception;
|
|
|
|
|
|
class SettingService {
|
|
|
|
|
@@ -42,9 +39,7 @@ class SettingService {
|
|
|
'Content-Type: application/json'
|
|
|
],
|
|
|
]);
|
|
|
-
|
|
|
$response = curl_exec($curl);
|
|
|
-
|
|
|
curl_close($curl);
|
|
|
$info = json_decode($response, true);
|
|
|
if ($channelName !== $info['name']) {
|
|
@@ -86,11 +81,8 @@ class SettingService {
|
|
|
'Content-Type: application/json',
|
|
|
],
|
|
|
]);
|
|
|
-
|
|
|
$response = curl_exec($curl);
|
|
|
-
|
|
|
curl_close($curl);
|
|
|
-
|
|
|
$info = json_decode($response, true);
|
|
|
if ($info['status'] !== 'y') {
|
|
|
throw new ApiException("设置自定义授权url失败--" . (string)$response);
|