Commit 0a5b65ab by 杨树贤

兼容try

parent f502f700
Showing with 4 additions and 0 deletions
......@@ -17,6 +17,7 @@ class CrmService
return json_decode($cachedData, true);
}
try {
$url = env('CRM_URL') . '/open/signComs/getSignComs?use_scope=2';
$client = new Client();
$response = $client->get($url);
......@@ -27,6 +28,9 @@ class CrmService
(new RedisModel())->setex($cacheKey, 60, json_encode($result['data']['list']));
return $result['data']['list'];
} catch (\Exception $e) {
return [];
}
}
//获取简单形式给各个地方使用
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment