短信验证

This commit is contained in:
“wanyongkang”
2022-05-13 17:30:16 +08:00
parent 2f3d3e7391
commit a2fb12bf71
2 changed files with 1 additions and 2 deletions

View File

@@ -41,7 +41,6 @@ class Sms
]);
// 复制代码运行请自行打印 API 的返回值
$sendResp = $client->sendSms($sendSmsRequest);
dump($sendResp);
$code = $sendResp->body->code;
if (!Utils::equalString($code, "OK")) {
$return_info = [

View File

@@ -18,7 +18,7 @@ class Redisop {
die;
}
$this->redis->set( $key , $value);
$this->redis->expire($key,60);
$this->redis->expire($key,120);
}
public function get($key = '') {