Browse Source

去掉try-catch里面的dd

master
李可松 4 years ago
parent
commit
67fa3fa4c3
  1. 6
      app/Libs/SsdbClient.php

6
app/Libs/SsdbClient.php

@ -21,7 +21,9 @@ class SsdbClient
//}
/**
* @throws \Exception
*/
public static function client($host=null, $port=null)
{
$host = $host??env('SSDB_HOST');
@ -31,7 +33,7 @@ class SsdbClient
$SSDB = new SimpleSSDB($host, $port);
$SSDB->auth(env('SSDB_AUTH'));
} catch (\Exception $e) {
dd($e);
throw new \Exception('SSDB:' . $e->getMessage());
}
return $SSDB;

Loading…
Cancel
Save