redis->executeCommand('SETEX', [$key, 300, $code]); } //取申请会员的验证码 ssh 2019.12.18 public static function getApplyMemberCode($userId, $mobile) { $smsTypeList = SmsClass::$smsType; $applyMemberType = $smsTypeList['applyMember']['sign']; $key = 'SMS_' . $applyMemberType . '_' . $userId . '_' . $mobile; $cacheCode = Yii::$app->redis->executeCommand('GET', [$key]); return $cacheCode; } }