|
@@ -13,6 +13,7 @@ namespace app\common\lib\sms;
|
|
|
use AlibabaCloud\Client\AlibabaCloud;
|
|
|
use AlibabaCloud\Client\Exception\ClientException;
|
|
|
use AlibabaCloud\Client\Exception\ServerException;
|
|
|
+use think\facade\Log;
|
|
|
|
|
|
class AliSms
|
|
|
{
|
|
@@ -53,11 +54,14 @@ class AliSms
|
|
|
],
|
|
|
])
|
|
|
->request();
|
|
|
+ Log::info("alisms-sendCode-{$phone}-result" . json_encode($result->toArray()));
|
|
|
// print_r($result->toArray());
|
|
|
} catch (ClientException $e) {
|
|
|
+ Log::error("alisms-sendCode-{$phone}-ClientException" . $e->getErrorMessage());
|
|
|
return false;
|
|
|
// echo $e->getErrorMessage() . PHP_EOL;
|
|
|
} catch (ServerException $e) {
|
|
|
+ Log::error("alisms-sendCode-{$phone}-ServerException" . $e->getErrorMessage());
|
|
|
return false;
|
|
|
// echo $e->getErrorMessage() . PHP_EOL;
|
|
|
}
|